update ReadME, as well as some extra stuff for setting up functionality
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package net.halbear.hvf.Util.VehicleData;
|
||||
|
||||
public enum FuelType {
|
||||
FossilFuelsIncludingWood,
|
||||
FossilFuelsExcludingWood,
|
||||
Kerosene,
|
||||
AviationPetrol,
|
||||
Diesel,
|
||||
Petrol,
|
||||
SolidPropellant
|
||||
}
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package net.halbear.hvf.Entity.Renderer;
|
||||
package net.halbear.hvf.Util.VehicleData;
|
||||
|
||||
public enum PhysicsPreset {
|
||||
SimpleMinecraft,
|
||||
@@ -11,6 +11,7 @@ public class VehicleBuildInfo {
|
||||
private Vector3d CentreOfMassOffset = new Vector3d(0,0,0);
|
||||
private int EngineCount;
|
||||
private EngineCategories EngineType;
|
||||
private FuelType FuelType;
|
||||
private int GasCelCount;
|
||||
private float MaxSpeedMS;
|
||||
private float MaxEngineRPM;
|
||||
@@ -20,10 +21,19 @@ public class VehicleBuildInfo {
|
||||
private boolean AdheresToGravity = true;
|
||||
private Vector3d PilotSeat;
|
||||
private List<Vector3d> PassengerSeats = new ArrayList<>();
|
||||
private List<Float> FuelTanks = new ArrayList<>();
|
||||
|
||||
public VehicleBuildInfo AddPassengerSeat(Vector3d SeatIn){
|
||||
PassengerSeats.add(SeatIn);
|
||||
return this;
|
||||
return this;
|
||||
}
|
||||
public VehicleBuildInfo AddFuelTank(Float CapacityLitres){
|
||||
FuelTanks.add(CapacityLitres);
|
||||
return this;
|
||||
}
|
||||
public VehicleBuildInfo SetFuelType(FuelType fuelType){
|
||||
this.FuelType = fuelType;
|
||||
return this;
|
||||
}
|
||||
public VehicleBuildInfo SetPilotSeat(Vector3d SeatIn){
|
||||
PilotSeat = SeatIn;
|
||||
@@ -90,6 +100,8 @@ public class VehicleBuildInfo {
|
||||
public double GetGravityStrength(){return Gravity;}
|
||||
public Vector3d GetPilotSeat(){return PilotSeat;}
|
||||
public List<Vector3d> GetPassengerSeats(){return PassengerSeats;}
|
||||
public List<Float> GetFuelTanks(){return FuelTanks;}
|
||||
public FuelType GetFuelType(){return this.FuelType;}
|
||||
public float GetMaxSpeedMS(){return MaxSpeedMS;}
|
||||
public float GetMaxEngineRPM(){return MaxEngineRPM;}
|
||||
public float GetWingSpan(){return WingSpanMeters;}
|
||||
|
||||
Reference in New Issue
Block a user