Class AbstractTileEntityGrave

java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
net.minecraft.world.level.block.entity.BlockEntity
All Implemented Interfaces:
com.ldtteam.domumornamentum.entity.block.IMateriallyTexturedBlockEntity, IItemHandlerCapProvider, net.minecraft.world.Clearable, net.minecraft.world.inventory.MenuConstructor, net.minecraft.world.MenuProvider, net.neoforged.neoforge.attachment.IAttachmentHolder, net.neoforged.neoforge.client.extensions.IMenuProviderExtension, net.neoforged.neoforge.common.extensions.IBlockEntityExtension
Direct Known Subclasses:
TileEntityGrave

public abstract class AbstractTileEntityGrave extends TileEntityRack implements net.minecraft.world.MenuProvider
Abstract class for minecolonies graves.
  • Field Details

    • DEFAULT_DECAY_TIMER

      protected static final int DEFAULT_DECAY_TIMER
      default duration of the countdown before the grave disapear, in ticks (20 ticks / seconds)
      See Also:
    • decayed

      protected boolean decayed
      Is this grave decayed or not
    • decay_timer

      protected int decay_timer
      The decay timer counting down before the grave decay and then disapear
    • graveData

      @Nullable protected @Nullable IGraveData graveData
      The GraveData of the citizen that spawned this grave.
  • Constructor Details

    • AbstractTileEntityGrave

      public AbstractTileEntityGrave(net.minecraft.world.level.block.entity.BlockEntityType<? extends AbstractTileEntityGrave> tileEntityTypeIn, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
  • Method Details

    • delayDecayTimer

      public void delayDecayTimer(double minutes)
      Delay the decay timer by minutes
      Parameters:
      minutes - number of minutes to delay the time by
    • getGraveData

      public IGraveData getGraveData()
      Get the graveData of the saved citizen
    • setGraveData

      public void setGraveData(IGraveData graveData)
      Set the graveData of the saved citizen
      Parameters:
      graveData -