Class SolidPlaceholderPlacementHandler

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

public class SolidPlaceholderPlacementHandler 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(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, 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 placementContext)
     
    net.minecraft.world.level.block.state.BlockState
    Get the replacement block
    List<net.minecraft.world.item.ItemStack>
    getRequiredItems(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, 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(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState blockState, @Nullable net.minecraft.nbt.CompoundTag tileEntityData, @NotNull com.ldtteam.structurize.placement.IPlacementContext placementContext)
     
    void
    setReplacement(net.minecraft.world.level.block.state.BlockState state)
    Sets a different replacement block

    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

    • SolidPlaceholderPlacementHandler

      public SolidPlaceholderPlacementHandler()
  • Method Details

    • setReplacement

      public void setReplacement(net.minecraft.world.level.block.state.BlockState state)
      Sets a different replacement block
      Parameters:
      state -
    • getReplacement

      public net.minecraft.world.level.block.state.BlockState getReplacement()
      Get the replacement block
      Returns:
    • canHandle

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

      public List<net.minecraft.world.item.ItemStack> getRequiredItems(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, 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
    • handle

      public com.ldtteam.structurize.placement.handlers.placement.IPlacementHandler.ActionProcessingResult handle(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, 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
    • 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 placementContext)
      Specified by:
      doesWorldStateMatchBlueprintState in interface com.ldtteam.structurize.placement.handlers.placement.IPlacementHandler