Class VehicleComponent.VehicleContext
java.lang.Object
org.geysermc.geyser.entity.vehicle.VehicleComponent.VehicleContext
- Enclosing class:
VehicleComponent<T extends Entity & ClientVehicle>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BlockStateprotected org.cloudburstmc.math.vector.Vector3dprotected BlockStategetBlock(int x, int y, int z) protected BlockStategetBlock(org.cloudburstmc.math.vector.Vector3i pos) protected BlockStategetBlock(org.geysermc.erosion.util.BlockPositionIterator iter) protected intgetBlockId(int x, int y, int z) protected intgetBlockId(org.cloudburstmc.math.vector.Vector3i pos) protected intgetBlockId(org.geysermc.erosion.util.BlockPositionIterator iter) protected voidCache frequently used data and blocks used in movement calculations.protected org.cloudburstmc.math.vector.Vector3i
-
Constructor Details
-
VehicleContext
protected VehicleContext()
-
-
Method Details
-
loadSurroundingBlocks
protected void loadSurroundingBlocks()Cache frequently used data and blocks used in movement calculations.Can be called multiple times, and must be called at least once before using the VehicleContext.
-
centerPos
protected org.cloudburstmc.math.vector.Vector3d centerPos() -
centerBlock
-
supportingBlockPos
protected org.cloudburstmc.math.vector.Vector3i supportingBlockPos() -
getBlockId
protected int getBlockId(int x, int y, int z) -
getBlockId
protected int getBlockId(org.cloudburstmc.math.vector.Vector3i pos) -
getBlockId
protected int getBlockId(org.geysermc.erosion.util.BlockPositionIterator iter) -
getBlock
-
getBlock
-
getBlock
-