Package net.minecraft.inventory
Class SlotMerchantResult
- java.lang.Object
-
- net.minecraft.inventory.Slot
-
- net.minecraft.inventory.SlotMerchantResult
-
public class SlotMerchantResult extends Slot
+ This portion of EaglercraftX contains deobfuscated Minecraft 1.8 source code. Minecraft 1.8.8 bytecode is (c) 2015 Mojang AB. "Do not distribute!" Mod Coder Pack v9.18 deobfuscation configs are (c) Copyright by the MCP Team EaglercraftX 1.8 patch files are (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
-
-
Field Summary
-
Fields inherited from class net.minecraft.inventory.Slot
inventory, slotNumber, xDisplayPosition, yDisplayPosition
-
-
Constructor Summary
Constructors Constructor Description SlotMerchantResult(EntityPlayer player, IMerchant merchant, InventoryMerchant merchantInventory, int slotIndex, int xPosition, int yPosition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ItemStack
decrStackSize(int i)
+ Decrease the size of the stack in slot (first int arg) by the amount of the second int arg.boolean
isItemValid(ItemStack var1)
+ Check if the stack is a valid item for this slot.protected void
onCrafting(ItemStack itemstack)
+ the itemStack passed in is the output - ie, iron ingots, and pickaxes, not ore and wood.protected void
onCrafting(ItemStack itemstack, int i)
+ the itemStack passed in is the output - ie, iron ingots, and pickaxes, not ore and wood.void
onPickupFromSlot(EntityPlayer entityplayer, ItemStack itemstack)
-
Methods inherited from class net.minecraft.inventory.Slot
canBeHovered, canTakeStack, getHasStack, getItemStackLimit, getSlotStackLimit, getSlotTexture, getStack, isHere, onSlotChange, onSlotChanged, putStack
-
-
-
-
Constructor Detail
-
SlotMerchantResult
public SlotMerchantResult(EntityPlayer player, IMerchant merchant, InventoryMerchant merchantInventory, int slotIndex, int xPosition, int yPosition)
-
-
Method Detail
-
isItemValid
public boolean isItemValid(ItemStack var1)
+ Check if the stack is a valid item for this slot. Always true beside for the armor slots.- Overrides:
isItemValid
in classSlot
-
decrStackSize
public ItemStack decrStackSize(int i)
+ Decrease the size of the stack in slot (first int arg) by the amount of the second int arg. Returns the new stack.- Overrides:
decrStackSize
in classSlot
-
onCrafting
protected void onCrafting(ItemStack itemstack, int i)
+ the itemStack passed in is the output - ie, iron ingots, and pickaxes, not ore and wood. Typically increases an internal count then calls onCrafting(item).- Overrides:
onCrafting
in classSlot
-
onCrafting
protected void onCrafting(ItemStack itemstack)
+ the itemStack passed in is the output - ie, iron ingots, and pickaxes, not ore and wood. Typically increases an internal count then calls onCrafting(item).- Overrides:
onCrafting
in classSlot
-
onPickupFromSlot
public void onPickupFromSlot(EntityPlayer entityplayer, ItemStack itemstack)
- Overrides:
onPickupFromSlot
in classSlot
-
-