Class TrainRelocator
java.lang.Object
com.simibubi.create.content.trains.entity.TrainRelocator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanaddToTooltip(List<net.minecraft.network.chat.Component> tooltip, boolean shiftKeyDown) static booleancarriageWrenched(net.minecraft.world.phys.Vec3 vec3, CarriageContraptionEntity entity) static voidstatic booleanstatic voidonClicked(net.neoforged.neoforge.client.event.InputEvent.InteractionKeyMappingTriggered event) static booleanrelocate(Train train, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, BezierTrackPointLocation bezier, boolean bezierDirection, net.minecraft.world.phys.Vec3 lookAngle, boolean simulate) static @Nullable BooleanrelocateClient(Train relocating, boolean simulate) static voidvisualise(Train train, int i, net.minecraft.world.phys.Vec3 v1, net.minecraft.world.phys.Vec3 v2, boolean valid)
-
Constructor Details
-
TrainRelocator
public TrainRelocator()
-
-
Method Details
-
isRelocating
public static boolean isRelocating() -
onClicked
public static void onClicked(net.neoforged.neoforge.client.event.InputEvent.InteractionKeyMappingTriggered event) -
relocateClient
-
relocate
public static boolean relocate(Train train, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, BezierTrackPointLocation bezier, boolean bezierDirection, net.minecraft.world.phys.Vec3 lookAngle, boolean simulate) -
visualise
public static void visualise(Train train, int i, net.minecraft.world.phys.Vec3 v1, net.minecraft.world.phys.Vec3 v2, boolean valid) -
clientTick
public static void clientTick() -
carriageWrenched
public static boolean carriageWrenched(net.minecraft.world.phys.Vec3 vec3, CarriageContraptionEntity entity) -
addToTooltip
public static boolean addToTooltip(List<net.minecraft.network.chat.Component> tooltip, boolean shiftKeyDown)
-