java.lang.Object
petrolpark.mc.library.compat.create.core.world.dough.type.SimpleDoughType
All Implemented Interfaces:
IDough, IDoughType<SimpleDoughType>

public final class SimpleDoughType extends Object implements IDough, IDoughType<SimpleDoughType>
  • Field Details

    • codec

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

      protected final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf,SimpleDoughType> streamCodec
    • id

      protected final net.minecraft.resources.ResourceLocation id
    • minimumThickness

      protected final float minimumThickness
    • cuttable

      protected final boolean cuttable
    • toppable

      protected final boolean toppable
    • translationKey

      protected final String translationKey
    • textureLocation

      protected final net.minecraft.resources.ResourceLocation textureLocation
    • tint

      protected final int tint
  • Constructor Details

    • SimpleDoughType

      public SimpleDoughType(net.minecraft.resources.ResourceLocation id)
    • SimpleDoughType

      public SimpleDoughType(net.minecraft.resources.ResourceLocation id, float minimumThickness, boolean cuttable, boolean toppable, int tint)
  • Method Details

    • minimumThickness

      public float minimumThickness()
      Specified by:
      minimumThickness in interface IDough
    • cuttable

      public boolean cuttable()
      Specified by:
      cuttable in interface IDough
    • toppable

      public boolean toppable()
      Specified by:
      toppable in interface IDough
    • name

      public net.minecraft.network.chat.Component name()
      Specified by:
      name in interface IDough
    • textureLocation

      public net.minecraft.resources.ResourceLocation textureLocation()
      Specified by:
      textureLocation in interface IDough
    • tint

      public int tint()
      Specified by:
      tint in interface IDough
    • uniqueString

      public String uniqueString()
      Description copied from interface: IDough
      A string as unique as needed (should include a namespace) to distinguish this Dough in JEI.
      Specified by:
      uniqueString in interface IDough
    • getType

      public SimpleDoughType getType()
      Specified by:
      getType in interface IDough
    • codec

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

      public net.minecraft.network.codec.StreamCodec<? super net.minecraft.network.RegistryFriendlyByteBuf,SimpleDoughType> streamCodec()
      Specified by:
      streamCodec in interface IDoughType<SimpleDoughType>
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object