java.lang.Object
nokunami.floral_warfare.common.entity.plants.PlantFamily

public class PlantFamily extends Object
  • Field Details

    • FALL_BACK_FAMILY

      public static final PlantFamily FALL_BACK_FAMILY
  • Constructor Details

    • PlantFamily

      public PlantFamily(net.minecraft.ChatFormatting color, net.minecraft.tags.TagKey<net.minecraft.world.entity.EntityType<?>> tag, net.minecraft.tags.TagKey<net.minecraft.world.damagesource.DamageType> weak, net.minecraft.tags.TagKey<net.minecraft.world.damagesource.DamageType> resist, net.minecraft.tags.TagKey<net.minecraft.world.damagesource.DamageType> immune)
  • Method Details

    • getTextColor

      public net.minecraft.ChatFormatting getTextColor()
    • is

      public boolean is(net.minecraft.world.entity.Entity entity)
    • damageWeakToTag

      public net.minecraft.tags.TagKey<net.minecraft.world.damagesource.DamageType> damageWeakToTag()
    • damageResistanceTag

      public net.minecraft.tags.TagKey<net.minecraft.world.damagesource.DamageType> damageResistanceTag()
    • damageImmunityTag

      public net.minecraft.tags.TagKey<net.minecraft.world.damagesource.DamageType> damageImmunityTag()
    • pathFinding

      public PlantFamily.PathFinding pathFinding()
    • thunderHit

      public void thunderHit(AbstractPlant plant, net.minecraft.server.level.ServerLevel level, net.minecraft.world.entity.LightningBolt lightningBolt)
    • shouldDefaultToThunderHit

      public boolean shouldDefaultToThunderHit()
    • biomeTick

      public void biomeTick(AbstractPlant plant, net.minecraft.core.Holder<net.minecraft.world.level.biome.Biome> biome)
    • setPathfindingMalus

      public PlantFamily setPathfindingMalus(PlantFamily.PathFinding finding)
    • setThunderHit

      public PlantFamily setThunderHit(PlantFamily.ThunderHit hit)
    • shouldDefaultToThunderHit

      public PlantFamily shouldDefaultToThunderHit(boolean hit)
    • biomeTick

      public PlantFamily biomeTick(PlantFamily.BiomeTick tick)
    • isWeakTo

      public boolean isWeakTo(net.minecraft.world.damagesource.DamageSource source)
    • isResistantTo

      public boolean isResistantTo(net.minecraft.world.damagesource.DamageSource source)
    • isImmuneTo

      public boolean isImmuneTo(net.minecraft.world.damagesource.DamageSource source)
    • getFamilyForTag

      public static List<PlantFamily> getFamilyForTag(net.minecraft.world.entity.Entity entity)
    • getDescriptionId

      public String getDescriptionId()
    • getDescription

      public net.minecraft.network.chat.Component getDescription()
    • addTooltip

      public void addTooltip(List<net.minecraft.network.chat.Component> tooltip)
    • addAlmanacText

      public void addAlmanacText(List<AlmanacText> tooltip)
    • weakTo

      public static boolean weakTo(@NotNull @NotNull AbstractPlant plant, net.minecraft.world.damagesource.DamageSource source)
    • resistantTo

      public static boolean resistantTo(@NotNull @NotNull AbstractPlant plant, net.minecraft.world.damagesource.DamageSource source)
    • immuneTo

      public static boolean immuneTo(@NotNull @NotNull AbstractPlant plant, net.minecraft.world.damagesource.DamageSource source)
    • shouldDefaultThunderHit

      public static boolean shouldDefaultThunderHit(@NotNull @NotNull AbstractPlant plant)