Class BeaconContainer
- java.lang.Object
-
- net.minecraft.inventory.container.Container
-
- net.minecraft.inventory.container.BeaconContainer
-
public class BeaconContainer extends Container
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
BeaconContainer.BeaconSlot
-
Field Summary
Fields Modifier and Type Field Description private IWorldPosCallable
access
private IInventory
beacon
private IIntArray
beaconData
private BeaconContainer.BeaconSlot
paymentSlot
-
Fields inherited from class net.minecraft.inventory.container.Container
containerId, slots
-
-
Constructor Summary
Constructors Constructor Description BeaconContainer(int p_i50099_1_, IInventory p_i50099_2_)
BeaconContainer(int p_i50100_1_, IInventory p_i50100_2_, IIntArray p_i50100_3_, IWorldPosCallable p_i50100_4_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getLevels()
Effect
getPrimaryEffect()
Effect
getSecondaryEffect()
boolean
hasPayment()
ItemStack
quickMoveStack(PlayerEntity p_82846_1_, int p_82846_2_)
void
removed(PlayerEntity p_75134_1_)
void
setData(int p_75137_1_, int p_75137_2_)
boolean
stillValid(PlayerEntity p_75145_1_)
void
updateEffects(int p_216966_1_, int p_216966_2_)
-
Methods inherited from class net.minecraft.inventory.container.Container
addDataSlot, addDataSlots, addSlot, addSlotListener, backup, broadcastChanges, canDragTo, canItemQuickReplace, canTakeItemForPickAll, checkContainerDataCount, checkContainerSize, clearContainer, clicked, clickMenuButton, consideredTheSameItem, getItems, getQuickcraftHeader, getQuickcraftMask, getQuickCraftSlotCount, getQuickcraftType, getRedstoneSignalFromBlockEntity, getRedstoneSignalFromContainer, getSlot, getType, isSynched, isValidQuickcraftType, moveItemStackTo, removeSlotListener, resetQuickCraft, setAll, setItem, setSynched, slotsChanged, stillValid
-
-
-
-
Field Detail
-
beacon
private final IInventory beacon
-
paymentSlot
private final BeaconContainer.BeaconSlot paymentSlot
-
access
private final IWorldPosCallable access
-
beaconData
private final IIntArray beaconData
-
-
Constructor Detail
-
BeaconContainer
public BeaconContainer(int p_i50099_1_, IInventory p_i50099_2_)
-
BeaconContainer
public BeaconContainer(int p_i50100_1_, IInventory p_i50100_2_, IIntArray p_i50100_3_, IWorldPosCallable p_i50100_4_)
-
-
Method Detail
-
removed
public void removed(PlayerEntity p_75134_1_)
-
stillValid
public boolean stillValid(PlayerEntity p_75145_1_)
- Specified by:
stillValid
in classContainer
-
quickMoveStack
public ItemStack quickMoveStack(PlayerEntity p_82846_1_, int p_82846_2_)
- Overrides:
quickMoveStack
in classContainer
-
getLevels
public int getLevels()
-
getPrimaryEffect
@Nullable public Effect getPrimaryEffect()
-
getSecondaryEffect
@Nullable public Effect getSecondaryEffect()
-
updateEffects
public void updateEffects(int p_216966_1_, int p_216966_2_)
-
hasPayment
public boolean hasPayment()
-
-