Class RackPlacementHandler
java.lang.Object
com.minecolonies.core.placementhandlers.RackPlacementHandler
- All Implemented Interfaces:
com.ldtteam.structurize.placement.handlers.placement.IPlacementHandler
public class RackPlacementHandler
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 -
Method Summary
Modifier and TypeMethodDescriptionbooleancanHandle(@NotNull net.minecraft.world.level.Level world, @NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.level.block.state.BlockState blockState) booleandoesWorldStateMatchBlueprintState(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.ActionProcessingResulthandle(@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, waitMethods inherited from interface com.ldtteam.structurize.placement.handlers.placement.IPlacementHandler
handleRemoval, handleRemoval
-
Constructor Details
-
RackPlacementHandler
public RackPlacementHandler()
-
-
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:
canHandlein interfacecom.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:
handlein interfacecom.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:
getRequiredItemsin interfacecom.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:
doesWorldStateMatchBlueprintStatein interfacecom.ldtteam.structurize.placement.handlers.placement.IPlacementHandler
-