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

    Fields
    Modifier and Type
    Field
    Description
    net.minecraft.world.entity.AnimationState
     
    net.minecraft.world.entity.AnimationState
     
    net.minecraft.world.entity.AnimationState
     

    Fields inherited from class net.minecraft.world.level.block.entity.BlockEntity

    level, remove, worldPosition

    Fields inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity

    INFINITE_EXTENT_AABB
  • Constructor Summary

    Constructors
    Constructor
    Description
    ZenBeaconBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState blockState)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    actuallyHurtBeacon(float amount)
     
    void
    addExp(int exp)
     
    void
    attemptActivation(net.minecraft.world.entity.player.Player player, boolean active)
     
    static void
    clientTick(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.AbstractContainerMenu
    createMenu(int containerId, @NotNull net.minecraft.world.entity.player.Inventory inventory, @NotNull net.minecraft.world.entity.player.Player pPlayer)
     
    int
     
    int
     
    int
     
    @NotNull net.minecraft.network.chat.Component
     
    float
     
    static @Nullable ZenBeaconBlockEntity
    getInstance(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos)
     
    float
     
     
    net.minecraft.world.phys.AABB
     
    int
     
    int
     
    @Nullable net.minecraft.network.protocol.Packet<net.minecraft.network.protocol.game.ClientGamePacketListener>
     
    @NotNull net.minecraft.nbt.CompoundTag
     
    void
    healBeacon(float amount)
     
    void
    hurtBeacon(float amount)
     
    boolean
     
    boolean
     
    static boolean
    isBeaconActive(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos)
     
    boolean
     
    void
    load(@NotNull net.minecraft.nbt.CompoundTag tag)
     
    void
    save(net.minecraft.nbt.CompoundTag tag)
     
    protected void
    saveAdditional(@NotNull net.minecraft.nbt.CompoundTag tag)
     
    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)
     
    void
    setActive(boolean isActive)
     
    void
     
    void
    setBeaconLevel(int level)
     
    void
    setBroken(boolean isBroken)
     
    void
    setHealth(float hp)
     
    void
    setMaxHealth(float hp)
     
    void
     
    void
    setStoredExp(int exp)
     
    void
    setTaintAccumulation(int accumulation)
     
    void
     
    static void
    tick(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, triggerEvent

    Methods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider

    areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider

    getCapability, getCapability

    Methods 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:
      load in class net.minecraft.world.level.block.entity.BlockEntity
    • saveAdditional

      protected void saveAdditional(@NotNull @NotNull net.minecraft.nbt.CompoundTag tag)
      Overrides:
      saveAdditional in class net.minecraft.world.level.block.entity.BlockEntity
    • save

      public void save(net.minecraft.nbt.CompoundTag tag)
    • getRaidInstance

      public GardenRaid getRaidInstance()
    • setRaidInstance

      public void setRaidInstance(GardenRaid raid)
    • 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:
      getRenderBoundingBox in interface net.minecraftforge.common.extensions.IForgeBlockEntity
    • tick

      public void tick()
      Specified by:
      tick in interface FWTickingBlockEntity
    • 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:
      getUpdateTag in class net.minecraft.world.level.block.entity.BlockEntity
    • getUpdatePacket

      @Nullable public @Nullable net.minecraft.network.protocol.Packet<net.minecraft.network.protocol.game.ClientGamePacketListener> getUpdatePacket()
      Overrides:
      getUpdatePacket in class net.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:
      getDisplayName in interface net.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:
      createMenu in interface net.minecraft.world.inventory.MenuConstructor