Class BedHandlingModule

java.lang.Object
com.minecolonies.api.colony.buildings.modules.AbstractBuildingModule
com.minecolonies.core.colony.buildings.modules.BedHandlingModule
All Implemented Interfaces:
IBuildingEventsModule, IBuildingModule, IModuleWithExternalBlocks, IPersistentModule, IHasDirty

The class of the citizen hut.
  • Constructor Details

    • BedHandlingModule

      public BedHandlingModule()
  • Method Details

    • deserializeNBT

      public void deserializeNBT(net.minecraft.nbt.CompoundTag compound)
      Description copied from interface: IPersistentModule
      Deserialize the module.
      Specified by:
      deserializeNBT in interface IPersistentModule
      Parameters:
      compound - the nbt compound.
    • serializeNBT

      public void serializeNBT(net.minecraft.nbt.CompoundTag compound)
      Description copied from interface: IPersistentModule
      Serialize the module from a compound.
      Specified by:
      serializeNBT in interface IPersistentModule
      Parameters:
      compound - the compound.
    • onBlockPlacedInBuilding

      public void onBlockPlacedInBuilding(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState blockState, @NotNull @NotNull net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.world.level.Level world)
      Description copied from interface: IModuleWithExternalBlocks
      Attempt to register a specific block at a specific module.
      Specified by:
      onBlockPlacedInBuilding in interface IModuleWithExternalBlocks
      Parameters:
      blockState - the state.
      pos - the position.
      world - the world.
    • getRegisteredBlocks

      public List<net.minecraft.core.BlockPos> getRegisteredBlocks()
      Description copied from interface: IModuleWithExternalBlocks
      Get the list of registered blocks.
      Specified by:
      getRegisteredBlocks in interface IModuleWithExternalBlocks
      Returns:
      the list of positions of the blocks.
    • onWakeUp

      public void onWakeUp()
      Description copied from interface: IBuildingEventsModule
      Specific wakeup hook in modules.
      Specified by:
      onWakeUp in interface IBuildingEventsModule
    • removeBed

      public void removeBed(net.minecraft.core.BlockPos pos)
      Remove a bed from a pos.
      Parameters:
      pos - the pos to remove.