Package com.petrolpark.core.inventory
Class DummySlot
java.lang.Object
net.minecraft.world.inventory.Slot
com.petrolpark.core.inventory.DummySlot
public final class DummySlot
extends net.minecraft.world.inventory.Slot
-
Field Summary
Fields inherited from class net.minecraft.world.inventory.Slot
container, index, x, y -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.item.ItemStackgetItem()intbooleanhasItem()booleanisActive()booleanisFake()booleanbooleanmayPickup(net.minecraft.world.entity.player.Player player) booleanmayPlace(net.minecraft.world.item.ItemStack stack) net.minecraft.world.item.ItemStackremove(int amount) net.minecraft.world.item.ItemStacksafeInsert(net.minecraft.world.item.ItemStack stack, int increment) net.minecraft.world.item.ItemStacksafeTake(int count, int decrement, net.minecraft.world.entity.player.Player player) Optional<net.minecraft.world.item.ItemStack> tryRemove(int count, int decrement, net.minecraft.world.entity.player.Player player) Methods inherited from class net.minecraft.world.inventory.Slot
allowModification, checkTakeAchievements, getContainerSlot, getMaxStackSize, getNoItemIcon, getSlotIndex, isSameInventory, onQuickCraft, onQuickCraft, onSwapCraft, onTake, safeInsert, set, setBackground, setByPlayer, setByPlayer, setChanged
-
Constructor Details
-
DummySlot
-
-
Method Details
-
mayPlace
public boolean mayPlace(@Nonnull net.minecraft.world.item.ItemStack stack) - Overrides:
mayPlacein classnet.minecraft.world.inventory.Slot
-
getItem
public net.minecraft.world.item.ItemStack getItem()- Overrides:
getItemin classnet.minecraft.world.inventory.Slot
-
hasItem
public boolean hasItem()- Overrides:
hasItemin classnet.minecraft.world.inventory.Slot
-
getMaxStackSize
public int getMaxStackSize()- Overrides:
getMaxStackSizein classnet.minecraft.world.inventory.Slot
-
remove
public net.minecraft.world.item.ItemStack remove(int amount) - Overrides:
removein classnet.minecraft.world.inventory.Slot
-
mayPickup
public boolean mayPickup(@Nonnull net.minecraft.world.entity.player.Player player) - Overrides:
mayPickupin classnet.minecraft.world.inventory.Slot
-
isActive
public boolean isActive()- Overrides:
isActivein classnet.minecraft.world.inventory.Slot
-
tryRemove
public Optional<net.minecraft.world.item.ItemStack> tryRemove(int count, int decrement, @Nonnull net.minecraft.world.entity.player.Player player) - Overrides:
tryRemovein classnet.minecraft.world.inventory.Slot
-
safeTake
public net.minecraft.world.item.ItemStack safeTake(int count, int decrement, @Nonnull net.minecraft.world.entity.player.Player player) - Overrides:
safeTakein classnet.minecraft.world.inventory.Slot
-
safeInsert
public net.minecraft.world.item.ItemStack safeInsert(@Nonnull net.minecraft.world.item.ItemStack stack, int increment) - Overrides:
safeInsertin classnet.minecraft.world.inventory.Slot
-
isHighlightable
public boolean isHighlightable()- Overrides:
isHighlightablein classnet.minecraft.world.inventory.Slot
-
isFake
public boolean isFake()- Overrides:
isFakein classnet.minecraft.world.inventory.Slot
-