public class FertilizeSoilInteraction extends SimpleBlockInteraction
Class FertilizeSoilInteraction. Provides fertilizesoilinteraction functionality for the Hytale server.
java.lang.Object > SimpleBlockInteraction > FertilizeSoilInteraction
Field Summary
refreshModifiers
protected
String[]
refreshModifiers
Field refreshModifiers.
x
final
int
x
Field x.
z
final
int
z
Field z.
worldChunk
final
WorldChunk
worldChunk
Field worldChunk.
chunkStore
final
Store
chunkStore
Field chunkStore.
farmingState
final
FarmingBlock
farmingState
Field farmingState.
soilRef
final
Ref
soilRef
Field soilRef.
Method Detail
interactWithBlock
protected
void
interactWithBlock
(@Nonnull final World world, @Nonnull final CommandBuffer commandBuffer, @Nonnull final InteractionType type, @Nonnull final InteractionContext context, @Nullable final ItemStack itemInHand, @Nonnull final Vector3i targetBlock, @Nonnull final CooldownHandler cooldownHandler)
Method interactWithBlock.
- Parameters:
@Nonnull final Worldworld@Nonnull final CommandBuffercommandBuffer@Nonnull final InteractionTypetype@Nonnull final InteractionContextcontext@Nullable final ItemStackitemInHand@Nonnull final Vector3itargetBlock@Nonnull final CooldownHandlercooldownHandler
simulateInteractWithBlock
protected
void
simulateInteractWithBlock
(@Nonnull final InteractionType type, @Nonnull final InteractionContext context, @Nullable final ItemStack itemInHand, @Nonnull final World world, @Nonnull final Vector3i targetBlock)
Method simulateInteractWithBlock.
- Parameters:
@Nonnull final InteractionTypetype@Nonnull final InteractionContextcontext@Nullable final ItemStackitemInHand@Nonnull final Worldworld@Nonnull final Vector3itargetBlock
KeyedCodec
public
new
KeyedCodec
("RefreshModifiers", Codec.STRING_ARRAY)
Method KeyedCodec.
- Parameters:
"RefreshModifiers""RefreshModifiers"Codec.STRING_ARRAYCodec.STRING_ARRAY