java.lang.Object
nokunami.floral_warfare.common.entity.plants.sprout.SproutPool

public class SproutPool extends Object
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<SproutPool> CODEC
  • Method Details

    • element

      public static SproutPool element(net.minecraft.resources.ResourceLocation elementLocation, float chance)
    • optionalElement

      public static SproutPool optionalElement(net.minecraft.resources.ResourceLocation elementLocation, float chance)
    • add

      public static SproutPool add(net.minecraft.resources.ResourceLocation tagLocation, float chance)
    • optionalTag

      public static SproutPool optionalTag(net.minecraft.resources.ResourceLocation tagLocation, float chance)
    • build

      public <T> boolean build(SproutPool.Lookup<T> pLookup, Consumer<T> pConsumer)
    • visitRequiredDependencies

      public void visitRequiredDependencies(Consumer<net.minecraft.resources.ResourceLocation> visitor)
    • visitOptionalDependencies

      public void visitOptionalDependencies(Consumer<net.minecraft.resources.ResourceLocation> visitor)
    • verifyIfPresent

      public boolean verifyIfPresent(Predicate<net.minecraft.resources.ResourceLocation> elementPredicate, Predicate<net.minecraft.resources.ResourceLocation> tagPredicate)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getId

      public net.minecraft.resources.ResourceLocation getId()
    • isRequired

      public boolean isRequired()
    • isTag

      public boolean isTag()