Class GasMovementHandler
java.lang.Object
com.forsteri.unlimitedfluidity.core.flowinggas.GasMovementHandler
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Map<com.mojang.datafixers.util.Pair<net.minecraft.world.level.LevelAccessor,
FlowingGas>, GasMovementHandler> protected long
protected final net.minecraft.world.level.LevelAccessor
protected List<GasMovementHandler.GasMovement>
protected final FlowingGas
-
Method Summary
Modifier and TypeMethodDescriptionvoid
flow
(net.minecraft.core.BlockPos pos, net.minecraft.core.Direction direction) protected int
getDensity
(net.minecraft.core.BlockPos pos) org.jgrapht.graph.SimpleWeightedGraph<net.minecraft.core.BlockPos,
org.jgrapht.graph.DefaultWeightedEdge> getGraph()
static GasMovementHandler
getOrCreate
(net.minecraft.world.level.LevelAccessor level, FlowingGas gas) void
move
(net.minecraft.core.BlockPos pos, int density, net.minecraft.core.Direction direction) void
setGraph
(org.jgrapht.graph.SimpleWeightedGraph<net.minecraft.core.BlockPos, org.jgrapht.graph.DefaultWeightedEdge> graph) void
tick
(long tick)
-
Field Details
-
handlers
public static final Map<com.mojang.datafixers.util.Pair<net.minecraft.world.level.LevelAccessor,FlowingGas>, handlersGasMovementHandler> -
level
protected final net.minecraft.world.level.LevelAccessor level -
source
-
operations
-
lastTick
protected long lastTick
-
-
Method Details
-
tick
public void tick(long tick) -
getDensity
protected int getDensity(net.minecraft.core.BlockPos pos) -
move
public void move(net.minecraft.core.BlockPos pos, int density, net.minecraft.core.Direction direction) -
flow
public void flow(net.minecraft.core.BlockPos pos, net.minecraft.core.Direction direction) -
getGraph
public org.jgrapht.graph.SimpleWeightedGraph<net.minecraft.core.BlockPos,org.jgrapht.graph.DefaultWeightedEdge> getGraph() -
setGraph
public void setGraph(org.jgrapht.graph.SimpleWeightedGraph<net.minecraft.core.BlockPos, org.jgrapht.graph.DefaultWeightedEdge> graph) -
getOrCreate
public static GasMovementHandler getOrCreate(net.minecraft.world.level.LevelAccessor level, FlowingGas gas)
-