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

    Constructors
    Constructor
    Description
    LoadOnlyStructureHandler(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, com.ldtteam.structurize.blueprints.v1.Blueprint blueprint, com.ldtteam.structurize.util.PlacementSettings settings)
    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.util.PlacementSettings settings)
    The minecolonies specific creative structure placer.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    boolean
    isStackFree(@Nullable net.minecraft.world.item.ItemStack itemStack)
     
    void
    triggerSuccess(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, getSolidBlockForPos, getStepsPerCall, hasRequiredItems, prePlacementLogic, replaceWithSolidBlock, shouldBlocksBeConsideredEqual, triggerEntitySuccess

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

    getBluePrint, getCenterPos, getMd5, getRotationMirror, getSettings, 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

    • 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.util.PlacementSettings settings)
      The minecolonies specific creative structure placer.
      Parameters:
      world - the world.
      pos - the pos it is placed at.
      blueprintFuture - the future of the structure.
      settings - the placement settings.
      fancyPlacement - if fancy or complete.
    • LoadOnlyStructureHandler

      public LoadOnlyStructureHandler(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, com.ldtteam.structurize.blueprints.v1.Blueprint blueprint, com.ldtteam.structurize.util.PlacementSettings settings)
      The minecolonies specific creative structure placer.
      Parameters:
      world - the world.
      pos - the pos it is placed at.
      blueprint - the blueprint.
      settings - the placement settings.
      fancyPlacement - if fancy or complete.
  • Method Details

    • triggerSuccess

      public void triggerSuccess(net.minecraft.core.BlockPos pos, List<net.minecraft.world.item.ItemStack> list, boolean placement)
      Specified by:
      triggerSuccess in interface com.ldtteam.structurize.placement.structure.IStructureHandler
      Overrides:
      triggerSuccess in class com.ldtteam.structurize.placement.structure.AbstractStructureHandler
    • isCreative

      public boolean isCreative()
      Specified by:
      isCreative in interface com.ldtteam.structurize.placement.structure.IStructureHandler
      Overrides:
      isCreative in class com.ldtteam.structurize.placement.structure.CreativeStructureHandler
    • isStackFree

      public boolean isStackFree(@Nullable @Nullable net.minecraft.world.item.ItemStack itemStack)
      Specified by:
      isStackFree in interface com.ldtteam.structurize.placement.structure.IStructureHandler
      Overrides:
      isStackFree in class com.ldtteam.structurize.placement.structure.CreativeStructureHandler