Class FarmingUtil
java.lang.Object
com.hypixel.hytale.builtin.adventure.farming.FarmingUtil
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CapturedNPCMetadatagenerateCapturedNPCMetadata(ComponentAccessor<EntityStore> componentAccessor, Ref<EntityStore> entityRef, int roleIndex) protected static voidgiveDrops(ComponentAccessor<EntityStore> store, Ref<EntityStore> ref, Vector3d origin, com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType blockType) static voidharvest(World world, ComponentAccessor<EntityStore> store, Ref<EntityStore> ref, com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType blockType, int rotationIndex, Vector3i blockPosition) protected static booleanharvest0(ComponentAccessor<EntityStore> store, Ref<EntityStore> ref, com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType blockType, int rotationIndex, Vector3i blockPosition) static voidtickFarming(CommandBuffer<ChunkStore> commandBuffer, com.hypixel.hytale.server.core.universe.world.chunk.section.BlockSection blockSection, Ref<ChunkStore> sectionRef, Ref<ChunkStore> blockRef, FarmingBlock farmingBlock, int x, int y, int z, boolean initialTick)
-
Field Details
-
MAX_SECONDS_BETWEEN_TICKS
private static final int MAX_SECONDS_BETWEEN_TICKS- See Also:
-
BETWEEN_RANDOM
private static final int BETWEEN_RANDOM- See Also:
-
-
Constructor Details
-
FarmingUtil
public FarmingUtil()
-
-
Method Details
-
tickFarming
public static void tickFarming(CommandBuffer<ChunkStore> commandBuffer, com.hypixel.hytale.server.core.universe.world.chunk.section.BlockSection blockSection, Ref<ChunkStore> sectionRef, Ref<ChunkStore> blockRef, FarmingBlock farmingBlock, int x, int y, int z, boolean initialTick) -
harvest
public static void harvest(@Nonnull World world, @Nonnull ComponentAccessor<EntityStore> store, @Nonnull Ref<EntityStore> ref, @Nonnull com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType blockType, int rotationIndex, @Nonnull Vector3i blockPosition) -
generateCapturedNPCMetadata
@NullableDecl public static CapturedNPCMetadata generateCapturedNPCMetadata(ComponentAccessor<EntityStore> componentAccessor, Ref<EntityStore> entityRef, int roleIndex) -
harvest0
protected static boolean harvest0(@Nonnull ComponentAccessor<EntityStore> store, @Nonnull Ref<EntityStore> ref, @Nonnull com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType blockType, int rotationIndex, @Nonnull Vector3i blockPosition) -
giveDrops
protected static void giveDrops(@Nonnull ComponentAccessor<EntityStore> store, @Nonnull Ref<EntityStore> ref, @Nonnull Vector3d origin, @Nonnull com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType blockType)
-