Class InfuserResultSlot
java.lang.Object
net.minecraft.world.inventory.Slot
com.pixelmonmod.pixelmon.client.gui.machines.infuser.InfuserResultSlot
public class InfuserResultSlot
extends net.minecraft.world.inventory.Slot
This is a copy of the "FurnaceResultSlot" from Minecraft, but adapted for the Infuser.
-
Field Summary
Fields inherited from class net.minecraft.world.inventory.Slot
container, index, x, y -
Constructor Summary
ConstructorsConstructorDescriptionInfuserResultSlot(InfuserTileEntity infuser, net.minecraft.world.entity.player.Player player, net.minecraft.world.Container container, int slot, int xPosition, int yPosition) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckTakeAchievements(net.minecraft.world.item.ItemStack stack) booleanmayPlace(net.minecraft.world.item.ItemStack stack) protected voidonQuickCraft(net.minecraft.world.item.ItemStack stack, int amount) voidonTake(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack) net.minecraft.world.item.ItemStackremove(int amount) Methods inherited from class net.minecraft.world.inventory.Slot
allowModification, getContainerSlot, getItem, getMaxStackSize, getMaxStackSize, getNoItemIcon, getSlotIndex, hasItem, isActive, isFake, isHighlightable, isSameInventory, mayPickup, onQuickCraft, onSwapCraft, safeInsert, safeInsert, safeTake, set, setBackground, setByPlayer, setByPlayer, setChanged, tryRemove
-
Constructor Details
-
InfuserResultSlot
public InfuserResultSlot(InfuserTileEntity infuser, net.minecraft.world.entity.player.Player player, net.minecraft.world.Container container, int slot, int xPosition, int yPosition)
-
-
Method Details
-
mayPlace
public boolean mayPlace(net.minecraft.world.item.ItemStack stack) - Overrides:
mayPlacein classnet.minecraft.world.inventory.Slot
-
remove
public net.minecraft.world.item.ItemStack remove(int amount) - Overrides:
removein classnet.minecraft.world.inventory.Slot
-
onTake
public void onTake(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack) - Overrides:
onTakein classnet.minecraft.world.inventory.Slot
-
onQuickCraft
protected void onQuickCraft(net.minecraft.world.item.ItemStack stack, int amount) - Overrides:
onQuickCraftin classnet.minecraft.world.inventory.Slot
-
checkTakeAchievements
protected void checkTakeAchievements(net.minecraft.world.item.ItemStack stack) - Overrides:
checkTakeAchievementsin classnet.minecraft.world.inventory.Slot
-