Class FishingInteraction

All Implemented Interfaces:
JsonAsset<String>, JsonAssetWithMap<String, IndexedLookupTableAssetMap<String, Interaction>>, NetworkSerializable<Interaction>, Operation

public class FishingInteraction extends SimpleInstantInteraction
  • Field Details

  • Constructor Details

    • FishingInteraction

      public FishingInteraction()
  • Method Details

    • firstRun

      protected void firstRun(@NonNullDecl InteractionType type, @NonNullDecl InteractionContext context, @NonNullDecl CooldownHandler handler)
      Specified by:
      firstRun in class SimpleInstantInteraction
    • getTargetWater

      @Nullable public org.joml.Vector3i getTargetWater(@Nonnull CommandBuffer<EntityStore> commandBuffer, @Nonnull World world, float maxDistance, Ref<EntityStore> ref)
      Gets the target water block based on the raycast parameters.
      Parameters:
      world - the world reference
      maxDistance - the maximum distance for the raycast
      ref - the entity reference
      Returns:
      the target water block position, or null if none found