Package net.glowstone.block.entity
Class BrewingStandEntity
java.lang.Object
net.glowstone.block.entity.BlockEntity
net.glowstone.block.entity.ContainerEntity
net.glowstone.block.entity.BrewingStandEntity
-
Field Summary
Fields inherited from class net.glowstone.block.entity.BlockEntity
block
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getState()
Create a new BlockState which will correspond to this block entity.void
loadNbt
(CompoundTag tag) Read this BlockEntity's data from the saved tag.void
saveNbt
(CompoundTag tag) Save this BlockEntity's data to NBT.void
setBrewTime
(int brewTime) Methods inherited from class net.glowstone.block.entity.ContainerEntity
getInventory, setContents
Methods inherited from class net.glowstone.block.entity.BlockEntity
destroy, getBlock, pulse, setSaveId, update, updateInRange
-
Constructor Details
-
BrewingStandEntity
-
-
Method Details
-
loadNbt
Description copied from class:BlockEntity
Read this BlockEntity's data from the saved tag.- Overrides:
loadNbt
in classContainerEntity
- Parameters:
tag
- The tag to load from.
-
saveNbt
Description copied from class:BlockEntity
Save this BlockEntity's data to NBT.- Overrides:
saveNbt
in classContainerEntity
- Parameters:
tag
- The tag to save to.
-
getState
Description copied from class:BlockEntity
Create a new BlockState which will correspond to this block entity.- Overrides:
getState
in classBlockEntity
- Returns:
- A GlowBlockState, or null to use a standard BlockState.
-
getBrewTime
public int getBrewTime() -
setBrewTime
public void setBrewTime(int brewTime)
-