Class EntityLauncher
java.lang.Object
com.simibubi.create.content.logistics.block.depot.EntityLauncher
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyMotion(net.minecraft.world.entity.Entity entity, net.minecraft.core.Direction facing) voidclamp(int max) floatdx(double t) floatdy(double t) net.minecraft.world.phys.Vec3getGlobalPos(double t, net.minecraft.core.Direction d, net.minecraft.core.BlockPos launcher) net.minecraft.world.phys.Vec3getGlobalVelocity(double t, net.minecraft.core.Direction d, net.minecraft.core.BlockPos launcher) intdoubleintprotected voidvoidset(int horizontalDistance, int verticalDistance) floatx(double t) floaty(double t)
-
Constructor Details
-
EntityLauncher
public EntityLauncher(int horizontalDistance, int verticalDistance)
-
-
Method Details
-
clamp
public void clamp(int max) -
set
public void set(int horizontalDistance, int verticalDistance) -
applyMotion
public void applyMotion(net.minecraft.world.entity.Entity entity, net.minecraft.core.Direction facing) -
getHorizontalDistance
public int getHorizontalDistance() -
getVerticalDistance
public int getVerticalDistance() -
getTotalFlyingTicks
public double getTotalFlyingTicks() -
getGlobalPos
public net.minecraft.world.phys.Vec3 getGlobalPos(double t, net.minecraft.core.Direction d, net.minecraft.core.BlockPos launcher) -
getGlobalVelocity
public net.minecraft.world.phys.Vec3 getGlobalVelocity(double t, net.minecraft.core.Direction d, net.minecraft.core.BlockPos launcher) -
x
public float x(double t) -
y
public float y(double t) -
dx
public float dx(double t) -
dy
public float dy(double t) -
recalculateTrajectory
protected void recalculateTrajectory()
-