BlockPhysicsUtil
Package: com.hypixel.hytale.builtin.blockphysics
public class BlockPhysicsUtilUtility methods for evaluating block physics support requirements, testing face support constraints, and removing unsupported blocks.
Enum Constants
Section titled “Enum Constants”INVALIDVALIDWAITING_CHUNK
Constants
Section titled “Constants”| Type | Name |
|---|---|
int | DOESNT_SATISFY |
int | IGNORE |
int | SATISFIES_SUPPORT |
int | WAITING_CHUNK |
Key Methods
Section titled “Key Methods”| Modifier | Return Type | Signature |
|---|---|---|
public static | BlockPhysicsUtil.Result | applyBlockPhysics(@Nonnull ComponentAccessor<EntityStore> componentAccessor, @Nonnull Ref<ChunkStore> chunkReference, @Nonnull BlockPhysicsSystems.CachedAccessor chunkAccessor, BlockSection blockSection, @Nonnull BlockPhysics blockPhysics, @Nonnull FluidSection fluidSection, int blockX, int blockY, int blockZ, @Nonnull BlockType blockType, int rotation, int filler) |
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) |
public static | boolean | doesSatisfyRequirements(@Nonnull BlockType blockType, Vector3i blockFillerOffset, Vector3i neighbourFillerOffset, BlockFace blockFace, BlockFace neighbourBlockFace, int neighbourBlockId, @Nonnull BlockType neighbourBlockType, int neighbourRotation, int neighbourFluidId, @Nonnull Fluid neighbourFluid, @Nonnull RequiredBlockFaceSupport requiredBlockFaceSupport) |
public static | boolean | doesMatchFaceType(Vector3i fillerOffset, @Nonnull String faceType, BlockFace blockFace, @Nonnull Map<BlockFace, BlockFaceSupport[]> supporting) |
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.