Class ContraptionCollider
java.lang.Object
com.simibubi.create.content.contraptions.ContraptionCollider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancollideBlocks(AbstractContraptionEntity contraptionEntity) static net.minecraft.world.phys.Vec3getWorldToLocalTranslation(net.minecraft.world.entity.Entity entity, net.minecraft.world.phys.Vec3 anchorVec, Matrix3d rotationMatrix, float yawOffset) static booleanisCollidingWithWorld(net.minecraft.world.level.Level world, TranslatingContraption contraption, net.minecraft.core.BlockPos anchor, net.minecraft.core.Direction movementDirection) static voidlockPacketReceived(int contraptionId, int remotePlayerId, double suggestedOffset) static net.minecraft.world.phys.Vec3worldToLocalPos(net.minecraft.world.phys.Vec3 worldPos, AbstractContraptionEntity contraptionEntity) static net.minecraft.world.phys.Vec3worldToLocalPos(net.minecraft.world.phys.Vec3 worldPos, net.minecraft.world.phys.Vec3 anchorVec, AbstractContraptionEntity.ContraptionRotationState rotation) static net.minecraft.world.phys.Vec3worldToLocalPos(net.minecraft.world.phys.Vec3 worldPos, net.minecraft.world.phys.Vec3 anchorVec, Matrix3d rotationMatrix, float yawOffset)
-
Constructor Details
-
ContraptionCollider
public ContraptionCollider()
-
-
Method Details
-
lockPacketReceived
public static void lockPacketReceived(int contraptionId, int remotePlayerId, double suggestedOffset) -
getWorldToLocalTranslation
public static net.minecraft.world.phys.Vec3 getWorldToLocalTranslation(net.minecraft.world.entity.Entity entity, net.minecraft.world.phys.Vec3 anchorVec, Matrix3d rotationMatrix, float yawOffset) -
worldToLocalPos
public static net.minecraft.world.phys.Vec3 worldToLocalPos(net.minecraft.world.phys.Vec3 worldPos, AbstractContraptionEntity contraptionEntity) -
worldToLocalPos
public static net.minecraft.world.phys.Vec3 worldToLocalPos(net.minecraft.world.phys.Vec3 worldPos, net.minecraft.world.phys.Vec3 anchorVec, AbstractContraptionEntity.ContraptionRotationState rotation) -
worldToLocalPos
public static net.minecraft.world.phys.Vec3 worldToLocalPos(net.minecraft.world.phys.Vec3 worldPos, net.minecraft.world.phys.Vec3 anchorVec, Matrix3d rotationMatrix, float yawOffset) -
collideBlocks
-
isCollidingWithWorld
public static boolean isCollidingWithWorld(net.minecraft.world.level.Level world, TranslatingContraption contraption, net.minecraft.core.BlockPos anchor, net.minecraft.core.Direction movementDirection)
-