Package net.minecraft.screen
Class BeaconScreenHandler
java.lang.Object
net.minecraft.screen.ScreenHandler
net.minecraft.screen.BeaconScreenHandler
public class BeaconScreenHandler extends ScreenHandler
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) classBeaconScreenHandler.PaymentSlot -
Field Summary
Fields Modifier and Type Field Description private ScreenHandlerContextcontextprivate Inventorypaymentprivate BeaconScreenHandler.PaymentSlotpaymentSlotprivate PropertyDelegatepropertyDelegateFields inherited from class net.minecraft.screen.ScreenHandler
slots, syncId -
Constructor Summary
Constructors Constructor Description BeaconScreenHandler(int syncId, Inventory inventory)BeaconScreenHandler(int syncId, Inventory inventory, PropertyDelegate propertyDelegate, ScreenHandlerContext context) -
Method Summary
Modifier and Type Method Description booleancanUse(PlayerEntity player)voidclose(PlayerEntity player)StatusEffectgetPrimaryEffect()intgetProperties()StatusEffectgetSecondaryEffect()booleanhasPayment()voidsetEffects(int primaryEffectId, int secondaryEffectId)voidsetProperty(int id, int value)ItemStacktransferSlot(PlayerEntity player, int index)Methods inherited from class net.minecraft.screen.ScreenHandler
addListener, addProperties, addProperty, addSlot, calculateComparatorOutput, calculateComparatorOutput, calculateStackSize, canInsertIntoSlot, canInsertIntoSlot, canInsertItemIntoSlot, canUse, checkDataCount, checkSize, dropInventory, endQuickCraft, getNextActionId, getSlot, getStacks, getType, insertItem, isNotRestricted, onButtonClick, onContentChanged, onSlotClick, packQuickCraftData, removeListener, sendContentUpdates, setPlayerRestriction, setStackInSlot, shouldQuickCraftContinue, unpackQuickCraftButton, unpackQuickCraftStage, updateSlotStacks
-
Field Details
-
payment
-
paymentSlot
-
context
-
propertyDelegate
-
-
Constructor Details
-
BeaconScreenHandler
-
BeaconScreenHandler
public BeaconScreenHandler(int syncId, Inventory inventory, PropertyDelegate propertyDelegate, ScreenHandlerContext context)
-
-
Method Details
-
close
- Overrides:
closein classScreenHandler
-
canUse
- Specified by:
canUsein classScreenHandler
-
setProperty
public void setProperty(int id, int value)- Overrides:
setPropertyin classScreenHandler
-
transferSlot
- Overrides:
transferSlotin classScreenHandler
-
getProperties
@Environment(CLIENT) public int getProperties() -
getPrimaryEffect
-
getSecondaryEffect
-
setEffects
public void setEffects(int primaryEffectId, int secondaryEffectId) -
hasPayment
@Environment(CLIENT) public boolean hasPayment()
-