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

    Constructors
    Constructor
    Description
    InfuserResultSlot(InfuserTileEntity infuser, net.minecraft.world.entity.player.Player player, net.minecraft.world.Container container, int slot, int xPosition, int yPosition)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    checkTakeAchievements(net.minecraft.world.item.ItemStack stack)
     
    boolean
    mayPlace(net.minecraft.world.item.ItemStack stack)
     
    protected void
    onQuickCraft(net.minecraft.world.item.ItemStack stack, int amount)
     
    void
    onTake(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack)
     
    net.minecraft.world.item.ItemStack
    remove(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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      mayPlace in class net.minecraft.world.inventory.Slot
    • remove

      public net.minecraft.world.item.ItemStack remove(int amount)
      Overrides:
      remove in class net.minecraft.world.inventory.Slot
    • onTake

      public void onTake(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack)
      Overrides:
      onTake in class net.minecraft.world.inventory.Slot
    • onQuickCraft

      protected void onQuickCraft(net.minecraft.world.item.ItemStack stack, int amount)
      Overrides:
      onQuickCraft in class net.minecraft.world.inventory.Slot
    • checkTakeAchievements

      protected void checkTakeAchievements(net.minecraft.world.item.ItemStack stack)
      Overrides:
      checkTakeAchievements in class net.minecraft.world.inventory.Slot