-
Notifications
You must be signed in to change notification settings - Fork 288
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
85 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
src/main/java/org/violetmoon/zeta/event/play/loading/ZWandererTrades.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package org.violetmoon.zeta.event.play.loading; | ||
|
||
import net.minecraft.world.entity.npc.VillagerTrades; | ||
import org.violetmoon.zeta.event.bus.IZetaPlayEvent; | ||
|
||
import java.util.List; | ||
|
||
public interface ZWandererTrades extends IZetaPlayEvent { | ||
List<VillagerTrades.ItemListing> getGenericTrades(); | ||
List<VillagerTrades.ItemListing> getRareTrades(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
src/main/java/org/violetmoon/zetaimplforge/event/play/loading/ForgeZWandererTrades.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package org.violetmoon.zetaimplforge.event.play.loading; | ||
|
||
import net.minecraft.world.entity.npc.VillagerTrades; | ||
import net.minecraftforge.event.village.WandererTradesEvent; | ||
import org.violetmoon.zeta.event.play.loading.ZWandererTrades; | ||
|
||
import java.util.List; | ||
|
||
public class ForgeZWandererTrades implements ZWandererTrades { | ||
private final WandererTradesEvent e; | ||
|
||
public ForgeZWandererTrades(WandererTradesEvent e) { | ||
this.e = e; | ||
} | ||
|
||
|
||
@Override | ||
public List<VillagerTrades.ItemListing> getGenericTrades() { | ||
return e.getGenericTrades(); | ||
} | ||
|
||
@Override | ||
public List<VillagerTrades.ItemListing> getRareTrades() { | ||
return e.getRareTrades(); | ||
} | ||
} |