Class SimpleDoughType
java.lang.Object
com.petrolpark.compat.create.core.dough.type.SimpleDoughType
- All Implemented Interfaces:
IDough,IDoughType<SimpleDoughType>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final com.mojang.serialization.MapCodec<SimpleDoughType> protected final booleanprotected final net.minecraft.resources.ResourceLocationprotected final floatprotected final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf, SimpleDoughType> protected final net.minecraft.resources.ResourceLocationprotected final intprotected final booleanprotected final StringFields inherited from interface com.petrolpark.compat.create.core.dough.IDough
CODEC, STREAM_CODEC, TYPED_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionSimpleDoughType(net.minecraft.resources.ResourceLocation id) SimpleDoughType(net.minecraft.resources.ResourceLocation id, float minimumThickness, boolean cuttable, boolean toppable, int tint) -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec<SimpleDoughType> codec()booleancuttable()booleangetType()floatnet.minecraft.network.chat.Componentname()net.minecraft.network.codec.StreamCodec<? super net.minecraft.network.RegistryFriendlyByteBuf, SimpleDoughType> net.minecraft.resources.ResourceLocationinttint()booleantoppable()
-
Field Details
-
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
-
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:
minimumThicknessin interfaceIDough
-
cuttable
public boolean cuttable() -
toppable
public boolean toppable() -
name
public net.minecraft.network.chat.Component name() -
textureLocation
public net.minecraft.resources.ResourceLocation textureLocation()- Specified by:
textureLocationin interfaceIDough
-
tint
public int tint() -
getType
-
codec
- Specified by:
codecin interfaceIDoughType<SimpleDoughType>
-
streamCodec
public net.minecraft.network.codec.StreamCodec<? super net.minecraft.network.RegistryFriendlyByteBuf,SimpleDoughType> streamCodec()- Specified by:
streamCodecin interfaceIDoughType<SimpleDoughType>
-
equals
-