Package com.minecolonies.api.util
Class LoadOnlyStructureHandler
java.lang.Object
com.ldtteam.structurize.placement.structure.AbstractStructureHandler
com.ldtteam.structurize.placement.structure.CreativeStructureHandler
com.minecolonies.api.util.LoadOnlyStructureHandler
- All Implemented Interfaces:
com.ldtteam.structurize.placement.IPlacementContext,com.ldtteam.structurize.placement.structure.IStructureHandler
- Direct Known Subclasses:
WorkerLoadOnlyStructureHandler
public class LoadOnlyStructureHandler
extends com.ldtteam.structurize.placement.structure.CreativeStructureHandler
Load only structure handler just to get dimensions etc from structures, not for placement.
-
Field Summary
Fields inherited from class com.ldtteam.structurize.placement.structure.CreativeStructureHandler
fancyPlacement -
Constructor Summary
ConstructorsConstructorDescriptionLoadOnlyStructureHandler(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, com.ldtteam.structurize.blueprints.v1.Blueprint blueprint, com.ldtteam.structurize.api.RotationMirror rotMir) The minecolonies specific creative structure placer.LoadOnlyStructureHandler(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, Future<com.ldtteam.structurize.blueprints.v1.Blueprint> blueprintFuture, com.ldtteam.structurize.api.RotationMirror rotMir) The minecolonies specific creative structure placer. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanisStackFree(@Nullable net.minecraft.world.item.ItemStack itemStack) voidtriggerSuccess(net.minecraft.core.BlockPos pos, List<net.minecraft.world.item.ItemStack> list, boolean placement) Methods inherited from class com.ldtteam.structurize.placement.structure.CreativeStructureHandler
allowReplace, fancyPlacement, getHeldItem, getInventory, getMaxBlocksCheckedPerCall, getSolidBlockForPos, getStepsPerCall, hasRequiredItems, prePlacementLogic, replaceWithSolidBlock, shouldBlocksBeConsideredEqual, triggerEntitySuccessMethods inherited from class com.ldtteam.structurize.placement.structure.AbstractStructureHandler
getBluePrint, getCenterPos, getMd5, getRotationMirror, getWorld, hasBluePrint, isReady, setBlueprint, setMd5Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.ldtteam.structurize.placement.structure.IStructureHandler
consume, getProgressPosInWorld, getStructurePosFromWorld, isCorrectMD5, onCompletion
-
Constructor Details
-
LoadOnlyStructureHandler
public LoadOnlyStructureHandler(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, Future<com.ldtteam.structurize.blueprints.v1.Blueprint> blueprintFuture, com.ldtteam.structurize.api.RotationMirror rotMir) The minecolonies specific creative structure placer.- Parameters:
world- the world.pos- the pos it is placed at.blueprintFuture- the future of the structure.rotMir- the placement settings.
-
LoadOnlyStructureHandler
public LoadOnlyStructureHandler(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, com.ldtteam.structurize.blueprints.v1.Blueprint blueprint, com.ldtteam.structurize.api.RotationMirror rotMir) The minecolonies specific creative structure placer.- Parameters:
world- the world.pos- the pos it is placed at.blueprint- the blueprint.rotMir- the placement settings.
-
-
Method Details
-
triggerSuccess
public void triggerSuccess(net.minecraft.core.BlockPos pos, List<net.minecraft.world.item.ItemStack> list, boolean placement) - Specified by:
triggerSuccessin interfacecom.ldtteam.structurize.placement.structure.IStructureHandler- Overrides:
triggerSuccessin classcom.ldtteam.structurize.placement.structure.AbstractStructureHandler
-
isCreative
public boolean isCreative()- Specified by:
isCreativein interfacecom.ldtteam.structurize.placement.structure.IStructureHandler- Overrides:
isCreativein classcom.ldtteam.structurize.placement.structure.CreativeStructureHandler
-
isStackFree
public boolean isStackFree(@Nullable @Nullable net.minecraft.world.item.ItemStack itemStack) - Specified by:
isStackFreein interfacecom.ldtteam.structurize.placement.structure.IStructureHandler- Overrides:
isStackFreein classcom.ldtteam.structurize.placement.structure.CreativeStructureHandler
-