Class PlacementHandlers.HopperClientLagPlacementHandler

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

public static class PlacementHandlers.HopperClientLagPlacementHandler extends PlacementHandlers.ContainerPlacementHandler
mojang abusing lazyupdates, this modification always happens, but we need it now, not later
  • Constructor Details

    • HopperClientLagPlacementHandler

      public HopperClientLagPlacementHandler()
  • 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
      Overrides:
      canHandle in class PlacementHandlers.ContainerPlacementHandler
      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, IPlacementContext placementContext)
      Description copied from interface: IPlacementHandler
      Method used to handle the processing of a Placement of a block.
      Specified by:
      handle in interface IPlacementHandler
      Overrides:
      handle in class PlacementHandlers.ContainerPlacementHandler
      Parameters:
      world - receives the world.
      pos - the position.
      blockState - the blockState.
      tileEntityData - the placer of the block.
      placementContext - extended placement context.
      Returns:
      ACCEPT, DENY or IGNORE.