class
Rosegold::MiningPrediction
- Rosegold::MiningPrediction
- Reference
- Object
Overview
Pending block interaction states, separate from authoritative chunk data. Each position keeps its latest prediction until a cumulative acknowledgement.
Defined in:
rosegold/world/mining_prediction.crConstructors
Class Method Summary
- .fluid_table(mc : Rosegold::MCData) : FluidTable
-
.replacement_state(state : UInt16, mc : Rosegold::MCData = Rosegold::MCData.default) : UInt16
createLegacyBlock of the fluid occupying
state: its source/flowing water or lava block state, otherwise air. -
.water_own_height(state : UInt16, mc : Rosegold::MCData = Rosegold::MCData.default) : Float64 | Nil
Fluid height in blocks of the water in
state(FlowingFluid#getOwnHeight, amount / 9), or nil when it holds no water.
Instance Method Summary
- #[](x : Int32, y : Int32, z : Int32) : UInt16 | Nil
- #acknowledge(sequence : Int32) : Nil
- #clear : Nil
- #clear_chunk(chunk_pos : ChunkPos) : Nil
- #empty? : Bool
- #predict(x : Int32, y : Int32, z : Int32, sequence : Int32, state : UInt16) : Bool
Constructor Detail
Class Method Detail
def self.replacement_state(state : UInt16, mc : Rosegold::MCData = Rosegold::MCData.default) : UInt16
#
createLegacyBlock of the fluid occupying state: its source/flowing water
or lava block state, otherwise air.
def self.water_own_height(state : UInt16, mc : Rosegold::MCData = Rosegold::MCData.default) : Float64 | Nil
#
Fluid height in blocks of the water in state (FlowingFluid#getOwnHeight,
amount / 9), or nil when it holds no water.