Class SharedVehicleControls
java.lang.Object
eu.comosus.ananas.quirkyvehiclesframework.controls.SharedVehicleControls
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static interfacestatic final record -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected intintintintintintintnet.minecraft.nbt.CompoundTagintgetSeatInputs(int seat) booleanisTurningLeft(int seat) booleanisTurningRight(int seat) voidsetFromCompoundTag(net.minecraft.nbt.CompoundTag tag) voidsetSeatInputs(int seat, SharedVehicleControls.Inputs inputs)
-
Constructor Details
-
SharedVehicleControls
public SharedVehicleControls() -
SharedVehicleControls
public SharedVehicleControls(net.minecraft.nbt.CompoundTag tag)
-
-
Method Details
-
getSeatsInputs
-
getInputs
public int getInputs() -
clearInputs
public void clearInputs() -
getSeatInputs
-
isTurningLeft
public boolean isTurningLeft(int seat) -
isTurningRight
public boolean isTurningRight(int seat) -
getCombinedLeftTurning
public int getCombinedLeftTurning() -
getCombinedRightTurning
public int getCombinedRightTurning() -
getCombinedForward
public int getCombinedForward() -
getCombinedBackward
public int getCombinedBackward() -
getCombinedUpward
public int getCombinedUpward() -
getCombinedDownward
public int getCombinedDownward() -
getCompoundTag
public net.minecraft.nbt.CompoundTag getCompoundTag() -
setFromCompoundTag
public void setFromCompoundTag(net.minecraft.nbt.CompoundTag tag)
-