Class NamedGravePlacementHandler

java.lang.Object
com.minecolonies.core.placementhandlers.NamedGravePlacementHandler
All Implemented Interfaces:
com.ldtteam.structurize.placement.handlers.placement.IPlacementHandler

public class NamedGravePlacementHandler extends Object implements com.ldtteam.structurize.placement.handlers.placement.IPlacementHandler
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.ldtteam.structurize.placement.handlers.placement.IPlacementHandler

    com.ldtteam.structurize.placement.handlers.placement.IPlacementHandler.ActionProcessingResult
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canHandle(@NotNull net.minecraft.world.level.Level world, @NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.level.block.state.BlockState blockState)
     
    boolean
    doesWorldStateMatchBlueprintState(net.minecraft.world.level.block.state.BlockState worldState, net.minecraft.world.level.block.state.BlockState blueprintState, net.minecraft.util.Tuple<net.minecraft.world.level.block.entity.BlockEntity,net.minecraft.nbt.CompoundTag> blockEntityData, @NotNull com.ldtteam.structurize.placement.IPlacementContext structureHandler)
     
    List<net.minecraft.world.item.ItemStack>
    getRequiredItems(@NotNull net.minecraft.world.level.Level world, @NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.level.block.state.BlockState blockState, @Nullable net.minecraft.nbt.CompoundTag tileEntityData, @NotNull com.ldtteam.structurize.placement.IPlacementContext placementContext)
     
    com.ldtteam.structurize.placement.handlers.placement.IPlacementHandler.ActionProcessingResult
    handle(@NotNull net.minecraft.world.level.Level world, @NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.level.block.state.BlockState blockState, @Nullable net.minecraft.nbt.CompoundTag tileEntityData, @NotNull com.ldtteam.structurize.placement.IPlacementContext placementContext)
     

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface com.ldtteam.structurize.placement.handlers.placement.IPlacementHandler

    handleRemoval, handleRemoval
  • Constructor Details

    • NamedGravePlacementHandler

      public NamedGravePlacementHandler()
  • Method Details

    • canHandle

      public boolean canHandle(@NotNull @NotNull net.minecraft.world.level.Level world, @NotNull @NotNull net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.world.level.block.state.BlockState blockState)
      Specified by:
      canHandle in interface com.ldtteam.structurize.placement.handlers.placement.IPlacementHandler
    • handle

      public com.ldtteam.structurize.placement.handlers.placement.IPlacementHandler.ActionProcessingResult handle(@NotNull @NotNull net.minecraft.world.level.Level world, @NotNull @NotNull net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.world.level.block.state.BlockState blockState, @Nullable @Nullable net.minecraft.nbt.CompoundTag tileEntityData, @NotNull @NotNull com.ldtteam.structurize.placement.IPlacementContext placementContext)
      Specified by:
      handle in interface com.ldtteam.structurize.placement.handlers.placement.IPlacementHandler
    • getRequiredItems

      public List<net.minecraft.world.item.ItemStack> getRequiredItems(@NotNull @NotNull net.minecraft.world.level.Level world, @NotNull @NotNull net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.world.level.block.state.BlockState blockState, @Nullable @Nullable net.minecraft.nbt.CompoundTag tileEntityData, @NotNull @NotNull com.ldtteam.structurize.placement.IPlacementContext placementContext)
      Specified by:
      getRequiredItems in interface com.ldtteam.structurize.placement.handlers.placement.IPlacementHandler
    • doesWorldStateMatchBlueprintState

      public boolean doesWorldStateMatchBlueprintState(net.minecraft.world.level.block.state.BlockState worldState, net.minecraft.world.level.block.state.BlockState blueprintState, net.minecraft.util.Tuple<net.minecraft.world.level.block.entity.BlockEntity,net.minecraft.nbt.CompoundTag> blockEntityData, @NotNull @NotNull com.ldtteam.structurize.placement.IPlacementContext structureHandler)
      Specified by:
      doesWorldStateMatchBlueprintState in interface com.ldtteam.structurize.placement.handlers.placement.IPlacementHandler