FarmingSystems

public class FarmingSystems

Class FarmingSystems. Provides farmingsystems functionality for the Hytale server.

java.lang.Object > FarmingSystems

Field Summary

soilConfig

final FarmingData.SoilConfig soilConfig

Field soilConfig.

range

final Rangef range

Field range.

baseDuration

final double baseDuration

Field baseDuration.

currentTime

final Instant currentTime

Field currentTime.

endTime

final Instant endTime

Field endTime.

soil

final TilledSoilBlock soil

Field soil.

info

final BlockModule.BlockStateInfo info

Field info.

x

final int x

Field x.

y

final int y

Field y.

z

final int z

Field z.

blockChunk

final BlockChunk blockChunk

Field blockChunk.

blockSection

final BlockSection blockSection

Field blockSection.

decayTime

final Instant decayTime

Field decayTime.

blockType

final BlockType blockType

Field blockType.

farmingBlock

final FarmingBlock farmingBlock

Field farmingBlock.

blockId

final int blockId

Field blockId.

stages

final FarmingStageData[] stages

Field stages.

obj

final FarmingStageData obj

Field obj.

stage

final FarmingStageData stage

Field stage.

blockStateFarmingStageData

final BlockStateFarmingStageData blockStateFarmingStageData

Field blockStateFarmingStageData.

data

final BlockTypeFarmingStageData data

Field data.

data2

final BlockStateFarmingStageData data2

Field data2.

stateBlockType

final BlockType stateBlockType

Field stateBlockType.

sectionRef

final Ref sectionRef

Field sectionRef.

blockComponentChunk

final BlockComponentChunk blockComponentChunk

Field blockComponentChunk.

column

final ChunkColumn column

Field column.

section

final Ref section

Field section.

handle

final MethodHandle handle

Field handle.

blocks

final BlockSection blocks

Field blocks.

ref

final Ref ref

Field ref.

blockRef

final Ref blockRef

Field blockRef.

farming

final FarmingBlock farming

Field farming.

coop

final CoopBlock coop

Field coop.

checkIndex

final int checkIndex

Field checkIndex.

aboveBlockRef

final Ref aboveBlockRef

Field aboveBlockRef.

targetBlock

final String targetBlock

Field targetBlock.

targetBlock2

final String targetBlock2

Field targetBlock2.

worldChunk2

final WorldChunk worldChunk2

Field worldChunk2.

rotation2

final int rotation2

Field rotation2.

targetBlockId2

final int targetBlockId2

Field targetBlockId2.

targetBlockType2

final BlockType targetBlockType2

Field targetBlockType2.

store

final Store store

Field store.

worldTimeResource

final WorldTimeResource worldTimeResource

Field worldTimeResource.

coopAsset

final FarmingCoopAsset coopAsset

Field coopAsset.

chunkSection

final ChunkSection chunkSection

Field chunkSection.

worldX

final int worldX

Field worldX.

worldY

final int worldY

Field worldY.

worldZ

final int worldZ

Field worldZ.

world

final World world

Field world.

chunk

final WorldChunk chunk

Field chunk.

blockRotation

final double blockRotation

Field blockRotation.

spawnOffset

final Vector3d spawnOffset

Field spawnOffset.

coopLocation

final Vector3i coopLocation

Field coopLocation.

tryCapture

final boolean tryCapture

Field tryCapture.

captureRange

final float captureRange

Field captureRange.

entities

final List> entities

Field entities.

blockPos

final Vector3i blockPos

Field blockPos.

currentBlockType

final BlockType currentBlockType

Field currentBlockType.

nextTickInstant

final Instant nextTickInstant

Field nextTickInstant.

coopBlock

final CoopBlock coopBlock

Field coopBlock.

entityStore

final Store entityStore

Field entityStore.

uuidComponent

final UUIDComponent uuidComponent

Field uuidComponent.

uuid

final UUID uuid

Field uuid.

coopResidentComponent

final CoopResidentComponent coopResidentComponent

Field coopResidentComponent.

coopPosition

final Vector3i coopPosition

Field coopPosition.

chunkIndex

final long chunkIndex

Field chunkIndex.

chunkReference

final Ref chunkReference

Field chunkReference.

chunkStore

final Store chunkStore

Field chunkStore.

chunkColumnComponent

final ChunkColumn chunkColumnComponent

Field chunkColumnComponent.

blockChunkComponent

final BlockChunk blockChunkComponent

Field blockChunkComponent.

blockIndexColumn

final int blockIndexColumn

Field blockIndexColumn.

coopEntityReference

final Ref coopEntityReference

Field coopEntityReference.

oldState

final FarmingBlockState oldState

Field oldState.

Method Detail

updateSoilDecayTime

static boolean updateSoilDecayTime (final CommandBuffer commandBuffer, final TilledSoilBlock soilBlock, final BlockType blockType)

Method updateSoilDecayTime.

Parameters:
final CommandBuffer commandBuffer
final TilledSoilBlock soilBlock
final BlockType blockType

onEntityAdded

public void onEntityAdded (@Nonnull final Ref ref, @Nonnull final AddReason reason, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)

Method onEntityAdded.

Parameters:
@Nonnull final Ref ref
@Nonnull final AddReason reason
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer

onEntityRemove

public void onEntityRemove (@Nonnull final Ref ref, @Nonnull final RemoveReason reason, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)

Method onEntityRemove.

Parameters:
@Nonnull final Ref ref
@Nonnull final RemoveReason reason
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer

getQuery

public Query getQuery ()

Method getQuery.

handle

static MethodHandle handle ()

Method handle.

ensureHandle

static MethodHandle ensureHandle ()

Method ensureHandle.

invoke

static int invoke (Object p0, int p1)

Method invoke.

Parameters:
Object p0
int p1

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

tickSoil

static void tickSoil (final CommandBuffer commandBuffer, final BlockComponentChunk blockComponentChunk, final Ref blockRef, final TilledSoilBlock soilBlock)

Method tickSoil.

Parameters:
final CommandBuffer commandBuffer
final BlockComponentChunk blockComponentChunk
final Ref blockRef
final TilledSoilBlock soilBlock

if

public else if (!soilBlock.isPlanted()

Method if.

Parameters:
!soilBlock.isPlanted( !soilBlock.isPlanted(

tickCoop

static void tickCoop (final CommandBuffer commandBuffer, final BlockComponentChunk blockComponentChunk, final Ref blockRef, final CoopBlock coopBlock)

Method tickCoop.

Parameters:
final CommandBuffer commandBuffer
final BlockComponentChunk blockComponentChunk
final Ref blockRef
final CoopBlock coopBlock

Vector3d

public new Vector3d ()

Method Vector3d.

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

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