Class CookableDough.Type
java.lang.Object
com.petrolpark.compat.create.core.dough.type.CookableDough.Type
- All Implemented Interfaces:
IDoughType<CookableDough>
- Enclosing class:
CookableDough
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final com.mojang.serialization.MapCodec<CookableDough> protected final List<CookableDough> protected final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf, CookableDough> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec<CookableDough> codec()getDough(int timesCooked) intfloatgetMinimumThickness(int timesCooked) abstract net.minecraft.resources.ResourceLocationgetTextureLocation(int timesCooked) intgetTint(int timesCooked) abstract StringgetTranslationKey(int timesCooked) booleanisCuttable(int timesCooked) booleanisToppable(int timesCooked) net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf, CookableDough>
-
Field Details
-
doughs
-
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
-
getMinimumThickness
public float getMinimumThickness(int timesCooked) -
isCuttable
public boolean isCuttable(int timesCooked) -
isToppable
public boolean isToppable(int timesCooked) -
getTranslationKey
-
getTextureLocation
public abstract net.minecraft.resources.ResourceLocation getTextureLocation(int timesCooked) -
getTint
public int getTint(int timesCooked) -
codec
- Specified by:
codecin interfaceIDoughType<CookableDough>
-
streamCodec
- Specified by:
streamCodecin interfaceIDoughType<CookableDough>
-