Class CreativeRaiderStructureHandler

java.lang.Object
com.ldtteam.structurize.placement.structure.AbstractStructureHandler
com.ldtteam.structurize.placement.structure.CreativeStructureHandler
com.minecolonies.core.util.CreativeRaiderStructureHandler
All Implemented Interfaces:
com.ldtteam.structurize.placement.IPlacementContext, com.ldtteam.structurize.placement.structure.IStructureHandler

public final class CreativeRaiderStructureHandler extends com.ldtteam.structurize.placement.structure.CreativeStructureHandler
Raider specific creative structure handler. Will correctly place spawners
  • Field Summary

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

    fancyPlacement
  • Constructor Summary

    Constructors
    Constructor
    Description
    CreativeRaiderStructureHandler(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, com.ldtteam.structurize.blueprints.v1.Blueprint blueprint, com.ldtteam.structurize.api.RotationMirror rotMir, boolean fancyPlacement, IColonyRaidEvent event, int colonyId)
    The minecolonies specific creative structure placer.
    CreativeRaiderStructureHandler(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, boolean fancyPlacement, IColonyRaidEvent event, int colonyId)
    The minecolonies specific creative structure placer.
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    loadAndPlaceStructure(net.minecraft.world.level.Level worldObj, @NotNull com.ldtteam.structurize.blueprints.v1.Blueprint blueprint, @NotNull net.minecraft.core.BlockPos pos, boolean fancyPlacement, int colonyId, IColonyRaidEvent event, @Nullable net.minecraft.server.level.ServerPlayer player)
    Load a structure into this world and place it in the right position and rotation.
    static void
    loadAndPlaceStructure(net.minecraft.world.level.Level worldObj, @NotNull Future<com.ldtteam.structurize.blueprints.v1.Blueprint> blueprintFuture, @NotNull net.minecraft.core.BlockPos pos, boolean fancyPlacement, int colonyId, IColonyRaidEvent event, @Nullable net.minecraft.server.level.ServerPlayer player)
    Load a structure into this world and place it in the right position and rotation.
    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, getStepsPerCall, hasRequiredItems, isCreative, isStackFree, 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

    • CreativeRaiderStructureHandler

      public CreativeRaiderStructureHandler(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, boolean fancyPlacement, IColonyRaidEvent event, int colonyId)
      The minecolonies specific creative structure placer.
      Parameters:
      world - the world.
      pos - the pos it is placed at.
      blueprintFuture - the blueprint future of the structure.
      rotMir - the placement settings.
      fancyPlacement - if fancy or complete.
      event - the raid event.
      colonyId - the colony id.
    • CreativeRaiderStructureHandler

      public CreativeRaiderStructureHandler(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, com.ldtteam.structurize.blueprints.v1.Blueprint blueprint, com.ldtteam.structurize.api.RotationMirror rotMir, boolean fancyPlacement, IColonyRaidEvent event, int colonyId)
      The minecolonies specific creative structure placer.
      Parameters:
      world - the world.
      pos - the pos it is placed at.
      blueprint - the blueprint of the structure.
      rotMir - the placement settings.
      fancyPlacement - if fancy or complete.
      event - the raid event.
      colonyId - the colony id.
  • 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
    • loadAndPlaceStructure

      public static void loadAndPlaceStructure(net.minecraft.world.level.Level worldObj, @NotNull @NotNull Future<com.ldtteam.structurize.blueprints.v1.Blueprint> blueprintFuture, @NotNull @NotNull net.minecraft.core.BlockPos pos, boolean fancyPlacement, int colonyId, IColonyRaidEvent event, @Nullable @Nullable net.minecraft.server.level.ServerPlayer player)
      Load a structure into this world and place it in the right position and rotation.
      Parameters:
      worldObj - the world to load it in
      blueprintFuture - the blueprint future
      pos - coordinates
      fancyPlacement - if fancy or complete.
      colonyId - the colony id.
      event - the raid event.
      player - the placing player.
    • loadAndPlaceStructure

      public static void loadAndPlaceStructure(net.minecraft.world.level.Level worldObj, @NotNull @NotNull com.ldtteam.structurize.blueprints.v1.Blueprint blueprint, @NotNull @NotNull net.minecraft.core.BlockPos pos, boolean fancyPlacement, int colonyId, IColonyRaidEvent event, @Nullable @Nullable net.minecraft.server.level.ServerPlayer player)
      Load a structure into this world and place it in the right position and rotation.
      Parameters:
      worldObj - the world to load it in
      blueprint - the blueprint
      pos - coordinates
      fancyPlacement - if fancy or complete.
      colonyId - the colony id.
      event - the raid event.
      player - the placing player.