Class ZenBeaconBlockEntity
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.block.entity.BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
nokunami.floral_warfare.common.block.entity.ZenBeaconBlockEntity
- All Implemented Interfaces:
net.minecraft.world.inventory.MenuConstructor,net.minecraft.world.MenuProvider,net.minecraftforge.common.capabilities.ICapabilityProvider,net.minecraftforge.common.capabilities.ICapabilityProviderImpl<net.minecraft.world.level.block.entity.BlockEntity>,net.minecraftforge.common.capabilities.ICapabilitySerializable<net.minecraft.nbt.CompoundTag>,net.minecraftforge.common.extensions.IForgeBlockEntity,net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>,FWTickingBlockEntity
public class ZenBeaconBlockEntity
extends net.minecraft.world.level.block.entity.BlockEntity
implements FWTickingBlockEntity, net.minecraft.world.MenuProvider
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
net.minecraftforge.common.capabilities.CapabilityProvider.AsField<B extends net.minecraftforge.common.capabilities.ICapabilityProviderImpl<B>> -
Field Summary
FieldsModifier and TypeFieldDescriptionnet.minecraft.world.entity.AnimationStatenet.minecraft.world.entity.AnimationStatenet.minecraft.world.entity.AnimationStateFields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPositionFields inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
INFINITE_EXTENT_AABB -
Constructor Summary
ConstructorsConstructorDescriptionZenBeaconBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState blockState) -
Method Summary
Modifier and TypeMethodDescriptionvoidactuallyHurtBeacon(float amount) voidaddExp(int exp) voidattemptActivation(net.minecraft.world.entity.player.Player player, boolean active) static voidclientTick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, ZenBeaconBlockEntity blockEntity) @Nullable net.minecraft.world.inventory.AbstractContainerMenucreateMenu(int containerId, @NotNull net.minecraft.world.entity.player.Inventory inventory, @NotNull net.minecraft.world.entity.player.Player pPlayer) intintint@NotNull net.minecraft.network.chat.Componentfloatstatic @Nullable ZenBeaconBlockEntitygetInstance(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos) floatnet.minecraft.world.phys.AABBintint@Nullable net.minecraft.network.protocol.Packet<net.minecraft.network.protocol.game.ClientGamePacketListener>@NotNull net.minecraft.nbt.CompoundTagvoidhealBeacon(float amount) voidhurtBeacon(float amount) booleanisActive()booleanstatic booleanisBeaconActive(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos) booleanisBroken()voidload(@NotNull net.minecraft.nbt.CompoundTag tag) voidsave(net.minecraft.nbt.CompoundTag tag) protected voidsaveAdditional(@NotNull net.minecraft.nbt.CompoundTag tag) static <E extends net.minecraft.world.level.block.entity.BlockEntity>
voidserverTick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockState, ZenBeaconBlockEntity blockEntity) voidsetActive(boolean isActive) voidsetBeaconHurtTick(int tick) voidsetBeaconLevel(int level) voidsetBroken(boolean isBroken) voidsetHealth(float hp) voidsetMaxHealth(float hp) voidsetRaidInstance(GardenRaid raid) voidsetStoredExp(int exp) voidsetTaintAccumulation(int accumulation) voidtick()static voidtick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, ZenBeaconBlockEntity be) Methods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPersistentData, getPosFromTag, getType, hasLevel, isRemoved, loadStatic, onChunkUnloaded, onlyOpCanSetNbt, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setLevel, setRemoved, triggerEventMethods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCapsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability, getCapabilityMethods inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
deserializeNBT, getModelData, handleUpdateTag, hasCustomOutlineRendering, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT
-
Field Details
-
activatedAnim
public net.minecraft.world.entity.AnimationState activatedAnim -
deactivatedAnim
public net.minecraft.world.entity.AnimationState deactivatedAnim -
hurtAnim
public net.minecraft.world.entity.AnimationState hurtAnim
-
-
Constructor Details
-
ZenBeaconBlockEntity
public ZenBeaconBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState blockState)
-
-
Method Details
-
load
public void load(@NotNull @NotNull net.minecraft.nbt.CompoundTag tag) - Overrides:
loadin classnet.minecraft.world.level.block.entity.BlockEntity
-
saveAdditional
protected void saveAdditional(@NotNull @NotNull net.minecraft.nbt.CompoundTag tag) - Overrides:
saveAdditionalin classnet.minecraft.world.level.block.entity.BlockEntity
-
save
public void save(net.minecraft.nbt.CompoundTag tag) -
getRaidInstance
-
setRaidInstance
-
getHealth
public float getHealth() -
setHealth
public void setHealth(float hp) -
getMaxHealth
public float getMaxHealth() -
setMaxHealth
public void setMaxHealth(float hp) -
getStoredExp
public int getStoredExp() -
setStoredExp
public void setStoredExp(int exp) -
getBeaconHurtTick
public int getBeaconHurtTick() -
setBeaconHurtTick
public void setBeaconHurtTick(int tick) -
isActive
public boolean isActive() -
setActive
public void setActive(boolean isActive) -
isBroken
public boolean isBroken() -
setBroken
public void setBroken(boolean isBroken) -
getBeaconLevel
public int getBeaconLevel() -
setBeaconLevel
public void setBeaconLevel(int level) -
getTaintAccumulation
public int getTaintAccumulation() -
setTaintAccumulation
public void setTaintAccumulation(int accumulation) -
addExp
public void addExp(int exp) -
attemptActivation
public void attemptActivation(net.minecraft.world.entity.player.Player player, boolean active) -
isAttackable
public boolean isAttackable() -
hurtBeacon
public void hurtBeacon(float amount) -
actuallyHurtBeacon
public void actuallyHurtBeacon(float amount) -
healBeacon
public void healBeacon(float amount) -
getRenderBoundingBox
public net.minecraft.world.phys.AABB getRenderBoundingBox()- Specified by:
getRenderBoundingBoxin interfacenet.minecraftforge.common.extensions.IForgeBlockEntity
-
tick
public void tick()- Specified by:
tickin interfaceFWTickingBlockEntity
-
getClientTicks
public int getClientTicks() -
tick
public static void tick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, ZenBeaconBlockEntity be) -
clientTick
public static void clientTick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, ZenBeaconBlockEntity blockEntity) -
serverTick
public static <E extends net.minecraft.world.level.block.entity.BlockEntity> void serverTick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockState, ZenBeaconBlockEntity blockEntity) -
getUpdateTag
@NotNull public @NotNull net.minecraft.nbt.CompoundTag getUpdateTag()- Overrides:
getUpdateTagin classnet.minecraft.world.level.block.entity.BlockEntity
-
getUpdatePacket
@Nullable public @Nullable net.minecraft.network.protocol.Packet<net.minecraft.network.protocol.game.ClientGamePacketListener> getUpdatePacket()- Overrides:
getUpdatePacketin classnet.minecraft.world.level.block.entity.BlockEntity
-
isBeaconActive
public static boolean isBeaconActive(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos) -
getInstance
@Nullable public static @Nullable ZenBeaconBlockEntity getInstance(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos) -
getDisplayName
@NotNull public @NotNull net.minecraft.network.chat.Component getDisplayName()- Specified by:
getDisplayNamein interfacenet.minecraft.world.MenuProvider
-
createMenu
@Nullable public @Nullable net.minecraft.world.inventory.AbstractContainerMenu createMenu(int containerId, @NotNull @NotNull net.minecraft.world.entity.player.Inventory inventory, @NotNull @NotNull net.minecraft.world.entity.player.Player pPlayer) - Specified by:
createMenuin interfacenet.minecraft.world.inventory.MenuConstructor
-