Interface IAnimalDataView

All Known Implementing Classes:
AnimalDataView

public interface IAnimalDataView
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    deserialize(@NotNull net.minecraft.network.FriendlyByteBuf buf)
    Deserialize the attributes and variables from transition.
    float
    Gets the combat cooldown of the animal.
    @Nullable net.minecraft.core.BlockPos
    Gets the block position of the animal's home building.
    int
    Get the id of the animal.
  • Method Details

    • deserialize

      void deserialize(@NotNull @NotNull net.minecraft.network.FriendlyByteBuf buf)
      Deserialize the attributes and variables from transition.
      Parameters:
      buf - Byte buffer to deserialize.
    • getId

      int getId()
      Get the id of the animal.
      Returns:
      the animal id.
    • getHomeBuilding

      @Nullable @Nullable net.minecraft.core.BlockPos getHomeBuilding()
      Gets the block position of the animal's home building.
      Returns:
      the block position of the home building, or null if the animal does not have a home building.
    • getCombatCooldown

      float getCombatCooldown()
      Gets the combat cooldown of the animal.
      Returns:
      the combat cooldown of the animal.