Klasse EntityRidingOffsetsPre1_20_2
java.lang.Object
com.viaversion.viafabricplus.features.entity.riding_offset.EntityRidingOffsetsPre1_20_2
Minecraft 1.20.2 changed the calculation of the mounted height offset for all entities, this class contains the old
values for all entities. This class is used for 1.20.1 and lower.
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic doublegetHeightOffset(net.minecraft.world.entity.Entity entity) Returns the height offset for the given entity.static net.minecraft.world.phys.Vec3getMountedHeightOffset(net.minecraft.world.entity.Entity entity, net.minecraft.world.entity.Entity passenger) Returns the mounted height offset for the given entity and passenger.
-
Konstruktordetails
-
EntityRidingOffsetsPre1_20_2
public EntityRidingOffsetsPre1_20_2()
-
-
Methodendetails
-
getMountedHeightOffset
public static net.minecraft.world.phys.Vec3 getMountedHeightOffset(net.minecraft.world.entity.Entity entity, net.minecraft.world.entity.Entity passenger) Returns the mounted height offset for the given entity and passenger. This method is used for 1.20.1 and lower.- Parameter:
entity- The entity to get the mounted height offset for.passenger- The passenger of the entity.- Gibt zurück:
- The mounted height offset.
-
getHeightOffset
public static double getHeightOffset(net.minecraft.world.entity.Entity entity) Returns the height offset for the given entity. This method is used for 1.20.1 and lower.- Parameter:
entity- The entity to get the height offset for.- Gibt zurück:
- The height offset.
-