FluidSystems

public class FluidSystems

Class FluidSystems. Provides fluidsystems functionality for the Hytale server.

java.lang.Object > FluidSystems

Field Summary

chunkColumnComponent

final ChunkColumn chunkColumnComponent

Field chunkColumnComponent.

blockChunkComponent

final BlockChunk blockChunkComponent

Field blockChunkComponent.

sections

final Holder[] sections

Field sections.

legacySections

final BlockSection[] legacySections

Field legacySections.

section

final Holder section

Field section.

paletteSection

final BlockSection paletteSection

Field paletteSection.

fluid

final FluidSection fluid

Field fluid.

chunkSectionComponent

final ChunkSection chunkSectionComponent

Field chunkSectionComponent.

fluidSectionComponent

final FluidSection fluidSectionComponent

Field fluidSectionComponent.

changes

final IntOpenHashSet changes

Field changes.

world

final World world

Field world.

worldChunkComponent

final WorldChunk worldChunkComponent

Field worldChunkComponent.

sectionY

final int sectionY

Field sectionY.

playerRefs

final Collection playerRefs

Field playerRefs.

chunkIndex

final long chunkIndex

Field chunkIndex.

playersCopy

final ObjectArrayList playersCopy

Field playersCopy.

packet

final ServerSetFluid packet

Field packet.

ref3

final Ref ref3

Field ref3.

tracker3

final ChunkTracker tracker3

Field tracker3.

change

final int change

Field change.

x

final int x

Field x.

y

final int y

Field y.

z

final int z

Field z.

level

final byte level

Field level.

ref

final Ref ref

Field ref.

tracker

final ChunkTracker tracker

Field tracker.

cmds

final SetFluidCmd[] cmds

Field cmds.

iter

final IntIterator iter

Field iter.

change2

final int change2

Field change2.

packet2

final ServerSetFluids packet2

Field packet2.

ref2

final Ref ref2

Field ref2.

tracker2

final ChunkTracker tracker2

Field tracker2.

chunkRef

final Ref chunkRef

Field chunkRef.

blockSection

final BlockSection blockSection

Field blockSection.

accessor

final FluidTicker.CachedAccessor accessor

Field accessor.

fluidSection1

final FluidSection fluidSection1

Field fluidSection1.

blockSection2

final BlockSection blockSection2

Field blockSection2.

fluidId

final int fluidId

Field fluidId.

blockX

final int blockX

Field blockX.

blockY

final int blockY

Field blockY.

blockZ

final int blockZ

Field blockZ.

Method Detail

onEntityAdd

public void onEntityAdd (@Nonnull final Holder holder, @Nonnull final AddReason reason, @Nonnull final Store store)

Method onEntityAdd.

Parameters:
@Nonnull final Holder holder
@Nonnull final AddReason reason
@Nonnull final Store store

FluidSection

public new FluidSection ()

Method FluidSection.

onEntityRemoved

public void onEntityRemoved (@Nonnull final Holder holder, @Nonnull final RemoveReason reason, @Nonnull final Store store)

Method onEntityRemoved.

Parameters:
@Nonnull final Holder holder
@Nonnull final RemoveReason reason
@Nonnull final Store store

getQuery

public Query getQuery ()

Method getQuery.

getDependencies

public Set> getDependencies ()

Method getDependencies.

MigrateFromColumn

public public MigrateFromColumn ()

Method MigrateFromColumn.

SystemDependency

public new SystemDependency (Order.BEFORE, LegacyModule.MigrateLegacySections.class)

Method SystemDependency.

Parameters:
Order.BEFORE Order.BEFORE
LegacyModule.MigrateLegacySections.class LegacyModule.MigrateLegacySections.class

fetch

public void fetch (final int index, @Nonnull final ArchetypeChunk archetypeChunk, final Store store, @Nonnull final CommandBuffer commandBuffer, final PlayerRef query, @Nonnull final List> results)

Method fetch.

Parameters:
final int index
@Nonnull final ArchetypeChunk archetypeChunk
final Store store
@Nonnull final CommandBuffer commandBuffer
final PlayerRef query
@Nonnull final List> results

isParallel

public boolean isParallel (final int archetypeChunkSize, final int taskCount)

Method isParallel.

Parameters:
final int archetypeChunkSize
final int taskCount

tick

public void tick (final float dt, final int index, @Nonnull final ArchetypeChunk archetypeChunk, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)

Method tick.

Parameters:
final float dt
final int index
@Nonnull final ArchetypeChunk archetypeChunk
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer

SetFluidCmd

public new SetFluidCmd ((short)

Method SetFluidCmd.

Parameters:
(short (short

ServerSetFluids

public new ServerSetFluids (fluidSectionComponent.getX()

Method ServerSetFluids.

Parameters:
fluidSectionComponent.getX( fluidSectionComponent.getX(