Skip to content

BlockPhysicsUtil

Package: com.hypixel.hytale.builtin.blockphysics

public class BlockPhysicsUtil

Utility methods for evaluating block physics support requirements, testing face support constraints, and removing unsupported blocks.

  • INVALID
  • VALID
  • WAITING_CHUNK
TypeName
intDOESNT_SATISFY
intIGNORE
intSATISFIES_SUPPORT
intWAITING_CHUNK
ModifierReturn TypeSignature
public staticBlockPhysicsUtil.ResultapplyBlockPhysics(@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 staticinttestBlockPhysics(@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 staticbooleandoesSatisfyRequirements(@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 staticbooleandoesMatchFaceType(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.