Class CookableDough.Type

java.lang.Object
com.petrolpark.compat.create.core.dough.type.CookableDough.Type
All Implemented Interfaces:
IDoughType<CookableDough>
Enclosing class:
CookableDough

public abstract static class CookableDough.Type extends Object implements IDoughType<CookableDough>
  • Field Details

    • doughs

      protected final List<CookableDough> doughs
    • codec

      protected final com.mojang.serialization.MapCodec<CookableDough> codec
    • streamCodec

      protected final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf,CookableDough> streamCodec
  • Constructor Details

    • Type

      public Type()
  • Method Details

    • getMaxCookingTimes

      public int getMaxCookingTimes()
    • getDough

      public CookableDough getDough(int timesCooked)
    • getMinimumThickness

      public float getMinimumThickness(int timesCooked)
    • isCuttable

      public boolean isCuttable(int timesCooked)
    • isToppable

      public boolean isToppable(int timesCooked)
    • getTranslationKey

      public abstract String getTranslationKey(int timesCooked)
    • getTextureLocation

      public abstract net.minecraft.resources.ResourceLocation getTextureLocation(int timesCooked)
    • getTint

      public int getTint(int timesCooked)
    • codec

      public com.mojang.serialization.MapCodec<CookableDough> codec()
      Specified by:
      codec in interface IDoughType<CookableDough>
    • streamCodec

      public net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf,CookableDough> streamCodec()
      Specified by:
      streamCodec in interface IDoughType<CookableDough>