Class VehicleComponent.VehicleContext

java.lang.Object
org.geysermc.geyser.entity.vehicle.VehicleComponent.VehicleContext
Enclosing class:
VehicleComponent<T extends Entity & ClientVehicle>

protected class VehicleComponent.VehicleContext extends Object
  • 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

      protected BlockState 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

      protected BlockState getBlock(int x, int y, int z)
    • getBlock

      protected BlockState getBlock(org.cloudburstmc.math.vector.Vector3i pos)
    • getBlock

      protected BlockState getBlock(org.geysermc.erosion.util.BlockPositionIterator iter)