Class BlockPlacementResult
java.lang.Object
com.ldtteam.structurize.placement.BlockPlacementResult
Possible placement result.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumPossible results for placement. -
Constructor Summary
ConstructorsConstructorDescriptionBlockPlacementResult(net.minecraft.core.BlockPos worldPos, BlockPlacementResult.Result result) Create a placement result object.BlockPlacementResult(net.minecraft.core.BlockPos worldPos, BlockPlacementResult.Result result, List<net.minecraft.world.item.ItemStack> requiredItems) Create a placement result object. -
Method Summary
Modifier and TypeMethodDescriptionList<net.minecraft.world.item.ItemStack> Get the list of required items.Get the placement result type.net.minecraft.core.BlockPosGet the world position.
-
Constructor Details
-
BlockPlacementResult
public BlockPlacementResult(net.minecraft.core.BlockPos worldPos, BlockPlacementResult.Result result) Create a placement result object.- Parameters:
worldPos- the pos in the world.result- the result.
-
BlockPlacementResult
public BlockPlacementResult(net.minecraft.core.BlockPos worldPos, BlockPlacementResult.Result result, List<net.minecraft.world.item.ItemStack> requiredItems) Create a placement result object.- Parameters:
worldPos- the pos in the world.result- the result.requiredItems- the missing items.
-
-
Method Details
-
getRequiredItems
Get the list of required items.- Returns:
- a copy of the list.
-
getWorldPos
public net.minecraft.core.BlockPos getWorldPos()Get the world position.- Returns:
- the world blockpos.
-
getResult
Get the placement result type.- Returns:
- the result type.
-