Class WorkerLoadOnlyStructureHandler<J extends AbstractJobStructure<?,J>,B extends AbstractBuildingStructureBuilder>

java.lang.Object
com.ldtteam.structurize.placement.structure.AbstractStructureHandler
com.ldtteam.structurize.placement.structure.CreativeStructureHandler
com.minecolonies.api.util.LoadOnlyStructureHandler
com.minecolonies.core.entity.ai.workers.util.WorkerLoadOnlyStructureHandler<J,B>
All Implemented Interfaces:
com.ldtteam.structurize.placement.IPlacementContext, com.ldtteam.structurize.placement.structure.IStructureHandler

public final class WorkerLoadOnlyStructureHandler<J extends AbstractJobStructure<?,J>,B extends AbstractBuildingStructureBuilder> extends LoadOnlyStructureHandler
Load only structure handler just to get dimensions etc from structures, not for placement specific for worker usage.
  • Field Summary

    Fields inherited from class com.ldtteam.structurize.placement.structure.CreativeStructureHandler

    fancyPlacement
  • Constructor Summary

    Constructors
    Constructor
    Description
    WorkerLoadOnlyStructureHandler(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, com.ldtteam.structurize.blueprints.v1.Blueprint blueprint, com.ldtteam.structurize.api.RotationMirror rotMir, AbstractEntityAIStructure<J,B> entityAIStructure)
    The minecolonies specific worker load only structure placer.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.level.block.state.BlockState
    getSolidBlockForPos(net.minecraft.core.BlockPos worldPos, @Nullable Function<net.minecraft.core.BlockPos,net.minecraft.world.level.block.state.BlockState> virtualBlocks)
     

    Methods inherited from class com.minecolonies.api.util.LoadOnlyStructureHandler

    isCreative, isStackFree, triggerSuccess

    Methods inherited from class com.ldtteam.structurize.placement.structure.CreativeStructureHandler

    allowReplace, fancyPlacement, getHeldItem, getInventory, getMaxBlocksCheckedPerCall, getStepsPerCall, hasRequiredItems, prePlacementLogic, replaceWithSolidBlock, shouldBlocksBeConsideredEqual, triggerEntitySuccess

    Methods inherited from class com.ldtteam.structurize.placement.structure.AbstractStructureHandler

    getBluePrint, getCenterPos, getMd5, getRotationMirror, getWorld, hasBluePrint, isReady, setBlueprint, setMd5

    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.structure.IStructureHandler

    consume, getProgressPosInWorld, getStructurePosFromWorld, isCorrectMD5, onCompletion
  • Constructor Details

    • WorkerLoadOnlyStructureHandler

      public WorkerLoadOnlyStructureHandler(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, com.ldtteam.structurize.blueprints.v1.Blueprint blueprint, com.ldtteam.structurize.api.RotationMirror rotMir, AbstractEntityAIStructure<J,B> entityAIStructure)
      The minecolonies specific worker load only structure placer.
      Parameters:
      world - the world.
      pos - the pos it is placed at.
      blueprint - the blueprint.
      rotMir - the placement settings.
  • Method Details

    • getSolidBlockForPos

      public net.minecraft.world.level.block.state.BlockState getSolidBlockForPos(net.minecraft.core.BlockPos worldPos, @Nullable @Nullable Function<net.minecraft.core.BlockPos,net.minecraft.world.level.block.state.BlockState> virtualBlocks)
      Specified by:
      getSolidBlockForPos in interface com.ldtteam.structurize.placement.IPlacementContext
      Overrides:
      getSolidBlockForPos in class com.ldtteam.structurize.placement.structure.CreativeStructureHandler