public class FarmingUtil
Class FarmingUtil. Provides farmingutil functionality for the Hytale server.
java.lang.Object > FarmingUtil
Field Summary
world
Field world.
worldTimeResource
Field worldTimeResource.
currentTime
Field currentTime.
blockType
Field blockType.
farmingConfig
Field farmingConfig.
currentStageSet
Field currentStageSet.
stages
Field stages.
section
Field section.
worldX
Field worldX.
worldY
Field worldY.
worldZ
Field worldZ.
stage
Field stage.
range
Field range.
rand
Field rand.
baseDuration
Field baseDuration.
modifier
Field modifier.
nextGrowthInNanos
Field nextGrowthInNanos.
randCap
Field randCap.
cappedNextGrowthInNanos
Field cappedNextGrowthInNanos.
persistentModel
Field persistentModel.
modelAsset
Field modelAsset.
meta
Field meta.
centerPosition
Field centerPosition.
chunk
Field chunk.
currentStageIndex
Field currentStageIndex.
previousStage
Field previousStage.
newStageSet
Field newStageSet.
newStages
Field newStages.
chunk2
Field chunk2.
chunkStore
Field chunkStore.
chunkRef
Field chunkRef.
blockComponentChunk
Field blockComponentChunk.
now
Field now.
blockIndexColumn
Field blockIndexColumn.
blockEntity
Field blockEntity.
sectionRef
Field sectionRef.
harvest
Field harvest.
itemId
Field itemId.
dropListId
Field dropListId.
Method Detail
tickFarming
void
tickFarming
(final CommandBuffer commandBuffer, final BlockSection blockSection, final Ref sectionRef, final Ref blockRef, final FarmingBlock farmingBlock, final int x, final int y, final int z, final boolean initialTick)
Method tickFarming.
- Parameters:
final CommandBuffercommandBufferfinal BlockSectionblockSectionfinal RefsectionReffinal RefblockReffinal FarmingBlockfarmingBlockfinal intxfinal intyfinal intzfinal booleaninitialTick
harvest
void
harvest
(@Nonnull final World world, @Nonnull final ComponentAccessor store, @Nonnull final Ref ref, @Nonnull final BlockType blockType, final int rotationIndex, @Nonnull final Vector3i blockPosition)
Method harvest.
- Parameters:
@Nonnull final Worldworld@Nonnull final ComponentAccessorstore@Nonnull final Refref@Nonnull final BlockTypeblockTypefinal introtationIndex@Nonnull final Vector3iblockPosition
generateCapturedNPCMetadata
CapturedNPCMetadata
generateCapturedNPCMetadata
(final ComponentAccessor componentAccessor, final Ref entityRef, final int roleIndex)
Method generateCapturedNPCMetadata.
- Parameters:
final ComponentAccessorcomponentAccessorfinal RefentityReffinal introleIndex
harvest0
boolean
harvest0
(@Nonnull final ComponentAccessor store, @Nonnull final Ref ref, @Nonnull final BlockType blockType, final int rotationIndex, @Nonnull final Vector3i blockPosition)
Method harvest0.
- Parameters:
@Nonnull final ComponentAccessorstore@Nonnull final Refref@Nonnull final BlockTypeblockTypefinal introtationIndex@Nonnull final Vector3iblockPosition
giveDrops
void
giveDrops
(@Nonnull final ComponentAccessor store, @Nonnull final Ref ref, @Nonnull final Vector3d origin, @Nonnull final BlockType blockType)
Method giveDrops.
- Parameters:
@Nonnull final ComponentAccessorstore@Nonnull final Refref@Nonnull final Vector3dorigin@Nonnull final BlockTypeblockType