Class PlacementHandlers.StairBlockPlacementHandler

java.lang.Object
com.ldtteam.structurize.placement.handlers.placement.PlacementHandlers.StairBlockPlacementHandler
All Implemented Interfaces:
IPlacementHandler
Enclosing class:
PlacementHandlers

public static class PlacementHandlers.StairBlockPlacementHandler extends Object implements IPlacementHandler
  • Nested Class Summary

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

    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)
    Check if a placement handler can handle a certain 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, boolean complete)
    Method used to get the required items to place a block.
    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, boolean complete, net.minecraft.core.BlockPos centerPos)
    Method used to handle the processing of a Placement of a 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

    handle, handle, handleRemoval, handleRemoval
  • Constructor Details

    • StairBlockPlacementHandler

      public StairBlockPlacementHandler()
  • Method Details

    • canHandle

      public boolean canHandle(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState blockState)
      Description copied from interface: IPlacementHandler
      Check if a placement handler can handle a certain block.
      Specified by:
      canHandle in interface IPlacementHandler
      Parameters:
      world - the world.
      pos - the position.
      blockState - the blockState.
      Returns:
      true if so.
    • handle

      public 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, boolean complete, net.minecraft.core.BlockPos centerPos)
      Description copied from interface: IPlacementHandler
      Method used to handle the processing of a Placement of a block.
      Specified by:
      handle in interface IPlacementHandler
      Parameters:
      world - receives the world.
      pos - the position.
      blockState - the blockState.
      tileEntityData - the placer of the block.
      complete - place it complete (with or without substitution blocks etc).
      centerPos - centerPos the central position of it.
      Returns:
      ACCEPT, DENY or IGNORE.
    • 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, boolean complete)
      Description copied from interface: IPlacementHandler
      Method used to get the required items to place a block.
      Specified by:
      getRequiredItems in interface IPlacementHandler
      Parameters:
      world - receives the world.
      pos - the position.
      blockState - the blockState.
      tileEntityData - the placer of the block.
      complete - place it complete (with or without substitution blocks etc).
      Returns:
      the list of items.