mirror of
https://github.com/barkeser2002/CatServer.git
synced 2026-09-25 07:19:56 +03:00
38 lines
1.3 KiB
Diff
38 lines
1.3 KiB
Diff
--- ../src-base/minecraft/net/minecraft/village/MerchantRecipe.java
|
|
+++ ../src-work/minecraft/net/minecraft/village/MerchantRecipe.java
|
|
@@ -5,16 +5,28 @@
|
|
import net.minecraft.nbt.NBTTagCompound;
|
|
import net.minecraftforge.fml.relauncher.Side;
|
|
import net.minecraftforge.fml.relauncher.SideOnly;
|
|
+import org.bukkit.craftbukkit.inventory.CraftMerchantRecipe;
|
|
|
|
public class MerchantRecipe
|
|
{
|
|
- private ItemStack itemToBuy;
|
|
- private ItemStack secondItemToBuy;
|
|
- private ItemStack itemToSell;
|
|
- private int toolUses;
|
|
- private int maxTradeUses;
|
|
- private boolean rewardsExp;
|
|
+ public ItemStack itemToBuy;
|
|
+ public ItemStack secondItemToBuy;
|
|
+ public ItemStack itemToSell;
|
|
+ public int toolUses;
|
|
+ public int maxTradeUses;
|
|
+ public boolean rewardsExp;
|
|
|
|
+ private CraftMerchantRecipe bukkitHandle;
|
|
+
|
|
+ public CraftMerchantRecipe asBukkit() {
|
|
+ return (bukkitHandle == null) ? bukkitHandle = new CraftMerchantRecipe(this) : bukkitHandle;
|
|
+ }
|
|
+
|
|
+ public MerchantRecipe(ItemStack itemstack, ItemStack itemstack1, ItemStack itemstack2, int i, int j, CraftMerchantRecipe bukkit) {
|
|
+ this(itemstack, itemstack1, itemstack2, i, j);
|
|
+ this.bukkitHandle = bukkit;
|
|
+ }
|
|
+
|
|
public MerchantRecipe(NBTTagCompound tagCompound)
|
|
{
|
|
this.itemToBuy = ItemStack.EMPTY;
|