Class BlockPhysicsUtil
java.lang.Object
com.hypixel.hytale.builtin.blockphysics.BlockPhysicsUtil
-
Nested Class Summary
Nested Classes -
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> commandBuffer, Ref<ChunkStore> chunkReference, BlockPhysicsSystems.CachedAccessor chunkAccessor, com.hypixel.hytale.server.core.universe.world.chunk.section.BlockSection blockSection, BlockPhysics blockPhysics, FluidSection fluidSection, int blockX, int blockY, int blockZ, com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType blockType, int rotation, int filler) static booleandoesMatchFaceType(Vector3i fillerOffset, String faceType, BlockFace blockFace, Map<BlockFace, BlockFaceSupport[]> supporting) static booleandoesSatisfyRequirements(com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType blockType, Fluid fluid, Vector3i blockFillerOffset, Vector3i neighbourFillerOffset, BlockFace blockFace, BlockFace neighbourBlockFace, int neighbourBlockId, com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType neighbourBlockType, int neighbourRotation, int neighbourFluidId, Fluid neighbourFluid, RequiredBlockFaceSupport requiredBlockFaceSupport) static inttestBlockPhysics(BlockPhysicsSystems.CachedAccessor chunkAccessor, com.hypixel.hytale.server.core.universe.world.chunk.section.BlockSection blockSection, BlockPhysics blockPhysics, FluidSection fluidSection, int blockX, int blockY, int blockZ, com.hypixel.hytale.server.core.asset.type.blocktype.config.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(@Nullable ComponentAccessor<EntityStore> commandBuffer, @Nonnull Ref<ChunkStore> chunkReference, @Nonnull BlockPhysicsSystems.CachedAccessor chunkAccessor, com.hypixel.hytale.server.core.universe.world.chunk.section.BlockSection blockSection, @Nonnull BlockPhysics blockPhysics, @Nonnull FluidSection fluidSection, int blockX, int blockY, int blockZ, @Nonnull com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType blockType, int rotation, int filler) -
testBlockPhysics
public static int testBlockPhysics(@Nonnull BlockPhysicsSystems.CachedAccessor chunkAccessor, com.hypixel.hytale.server.core.universe.world.chunk.section.BlockSection blockSection, @Nullable BlockPhysics blockPhysics, @Nonnull FluidSection fluidSection, int blockX, int blockY, int blockZ, @Nonnull com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType blockType, int rotation, int filler) -
doesSatisfyRequirements
public static boolean doesSatisfyRequirements(@Nonnull com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType blockType, Fluid fluid, Vector3i blockFillerOffset, Vector3i neighbourFillerOffset, BlockFace blockFace, BlockFace neighbourBlockFace, int neighbourBlockId, @Nonnull com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType neighbourBlockType, int neighbourRotation, int neighbourFluidId, @Nonnull Fluid neighbourFluid, @Nonnull RequiredBlockFaceSupport requiredBlockFaceSupport) -
doesMatchFaceType
-