Contents
- Description
- Nested Class Summary
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- applyBlockPhysics(ComponentAccessor, BlockPhysicsSystems.CachedAccessor, Ref, BlockSection, BlockPhysics, FluidSection, int, int, int, BlockType, int, int)
- testBlockPhysics(BlockPhysicsSystems.CachedAccessor, BlockSection, BlockPhysics, FluidSection, int, int, int, BlockType, int, int)
- testBlockPhysics(BlockPhysicsUtil.SupportReader, int, int, int, BlockType, int, int)
- doesSatisfyRequirements(BlockType, Vector3i, Vector3i, BlockFace, BlockFace, int, BlockType, int, int, Fluid, RequiredBlockFaceSupport)
- doesMatchFaceType(Vector3i, String, BlockFace, Map)
Class BlockPhysicsUtil
java.lang.Object
com.hypixel.hytale.builtin.blockphysics.BlockPhysicsUtil
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic final recordstatic interface -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BlockPhysicsUtil.ResultapplyBlockPhysics(ComponentAccessor<EntityStore> componentAccessor, BlockPhysicsSystems.CachedAccessor chunkAccessor, Ref<ChunkStore> sectionReference, BlockSection blockSection, BlockPhysics blockPhysics, FluidSection fluidSection, int blockX, int blockY, int blockZ, BlockType blockType, int rotation, int filler) static booleandoesMatchFaceType(org.joml.Vector3i fillerOffset, String faceType, BlockFace blockFace, Map<BlockFace, BlockFaceSupport[]> supporting) static booleandoesSatisfyRequirements(BlockType blockType, org.joml.Vector3i blockFillerOffset, org.joml.Vector3i neighbourFillerOffset, BlockFace blockFace, BlockFace neighbourBlockFace, int neighbourBlockId, BlockType neighbourBlockType, int neighbourRotation, int neighbourFluidId, Fluid neighbourFluid, RequiredBlockFaceSupport requiredBlockFaceSupport) static inttestBlockPhysics(BlockPhysicsSystems.CachedAccessor chunkAccessor, BlockSection blockSection, BlockPhysics blockPhysics, FluidSection fluidSection, int blockX, int blockY, int blockZ, BlockType blockType, int rotation, int filler) Returns: -DOESNT_SATISFYif the block does not satisfy support. -IGNOREif the block physics isn't configured or the block is an unknown block. -SATISFIES_SUPPORTif the block fully satisfies support so has no support distance. - Or an int>0with the support distance of the block.static inttestBlockPhysics(BlockPhysicsUtil.SupportReader supportReader, int blockX, int blockY, int blockZ, BlockType blockType, int rotation, int filler)
-
Field Details
-
DOESNT_SATISFY
public static final int DOESNT_SATISFY- See Also:
-
IGNORE
public static final int IGNORE- See Also:
-
SATISFIES_SUPPORT
public static final int SATISFIES_SUPPORT- See Also:
-
WAITING_CHUNK
public static final int WAITING_CHUNK- See Also:
-
-
Constructor Details
-
BlockPhysicsUtil
public BlockPhysicsUtil()
-
-
Method Details
-
applyBlockPhysics
@Nonnull public static BlockPhysicsUtil.Result applyBlockPhysics(@Nonnull ComponentAccessor<EntityStore> componentAccessor, @Nonnull BlockPhysicsSystems.CachedAccessor chunkAccessor, @Nonnull Ref<ChunkStore> sectionReference, BlockSection blockSection, @Nonnull BlockPhysics blockPhysics, @Nonnull FluidSection fluidSection, int blockX, int blockY, int blockZ, @Nonnull BlockType blockType, int rotation, int filler) -
testBlockPhysics
public static int testBlockPhysics(@Nonnull BlockPhysicsSystems.CachedAccessor chunkAccessor, BlockSection blockSection, @Nullable BlockPhysics blockPhysics, @Nonnull FluidSection fluidSection, int blockX, int blockY, int blockZ, @Nonnull BlockType blockType, int rotation, int filler) Returns: -DOESNT_SATISFYif the block does not satisfy support. -IGNOREif the block physics isn't configured or the block is an unknown block. -SATISFIES_SUPPORTif the block fully satisfies support so has no support distance. - Or an int>0with the support distance of the block. -
testBlockPhysics
public static int testBlockPhysics(@Nonnull BlockPhysicsUtil.SupportReader supportReader, int blockX, int blockY, int blockZ, @Nonnull BlockType blockType, int rotation, int filler) -
doesSatisfyRequirements
public static boolean doesSatisfyRequirements(@Nonnull BlockType blockType, org.joml.Vector3i blockFillerOffset, org.joml.Vector3i neighbourFillerOffset, BlockFace blockFace, BlockFace neighbourBlockFace, int neighbourBlockId, @Nonnull BlockType neighbourBlockType, int neighbourRotation, int neighbourFluidId, @Nonnull Fluid neighbourFluid, @Nonnull RequiredBlockFaceSupport requiredBlockFaceSupport) -
doesMatchFaceType
public static boolean doesMatchFaceType(org.joml.Vector3i fillerOffset, @Nonnull String faceType, BlockFace blockFace, @Nonnull Map<BlockFace, BlockFaceSupport[]> supporting)
-