public class BeaconScreenHandler extends ScreenHandler
Modifier and Type | Class and Description |
---|---|
(package private) class |
BeaconScreenHandler.PaymentSlot |
Modifier and Type | Field and Description |
---|---|
private ScreenHandlerContext |
context |
private Inventory |
payment |
private BeaconScreenHandler.PaymentSlot |
paymentSlot |
private PropertyDelegate |
propertyDelegate |
slots, syncId
Constructor and Description |
---|
BeaconScreenHandler(int syncId,
Inventory inventory) |
BeaconScreenHandler(int syncId,
Inventory inventory,
PropertyDelegate propertyDelegate,
ScreenHandlerContext context) |
Modifier and Type | Method and Description |
---|---|
boolean |
canUse(PlayerEntity player) |
void |
close(PlayerEntity player) |
StatusEffect |
getPrimaryEffect() |
int |
getProperties() |
StatusEffect |
getSecondaryEffect() |
boolean |
hasPayment() |
void |
setEffects(int primaryEffectId,
int secondaryEffectId) |
void |
setProperty(int id,
int value) |
ItemStack |
transferSlot(PlayerEntity player,
int index) |
addListener, addProperties, addProperty, addSlot, calculateComparatorOutput, calculateComparatorOutput, calculateStackSize, canInsertIntoSlot, canInsertIntoSlot, canInsertItemIntoSlot, canStacksCombine, canUse, checkDataCount, checkSize, dropInventory, endQuickCraft, getNextActionId, getSlot, getStacks, getType, insertItem, isNotRestricted, onButtonClick, onContentChanged, onSlotClick, packQuickCraftData, removeListener, sendContentUpdates, setPlayerRestriction, setStackInSlot, shouldQuickCraftContinue, unpackQuickCraftButton, unpackQuickCraftStage, updateSlotStacks
private final Inventory payment
private final BeaconScreenHandler.PaymentSlot paymentSlot
private final ScreenHandlerContext context
private final PropertyDelegate propertyDelegate
public BeaconScreenHandler(int syncId, Inventory inventory)
public BeaconScreenHandler(int syncId, Inventory inventory, PropertyDelegate propertyDelegate, ScreenHandlerContext context)
public void close(PlayerEntity player)
close
in class ScreenHandler
public boolean canUse(PlayerEntity player)
canUse
in class ScreenHandler
public void setProperty(int id, int value)
setProperty
in class ScreenHandler
public ItemStack transferSlot(PlayerEntity player, int index)
transferSlot
in class ScreenHandler
@Environment(value=CLIENT) public int getProperties()
@Environment(value=CLIENT) @Nullable public StatusEffect getPrimaryEffect()
@Environment(value=CLIENT) @Nullable public StatusEffect getSecondaryEffect()
public void setEffects(int primaryEffectId, int secondaryEffectId)
@Environment(value=CLIENT) public boolean hasPayment()