Class ValueObjectTypeRecipe
java.lang.Object
org.cyclops.integrateddynamics.core.evaluate.variable.ValueTypeBase<V>
org.cyclops.integrateddynamics.core.evaluate.variable.ValueObjectTypeBase<ValueObjectTypeRecipe.ValueRecipe>
org.cyclops.integrateddynamics.core.evaluate.variable.ValueObjectTypeRecipe
- All Implemented Interfaces:
IValueType<ValueObjectTypeRecipe.ValueRecipe>,IValueTypeNamed<ValueObjectTypeRecipe.ValueRecipe>,IValueTypeNullable<ValueObjectTypeRecipe.ValueRecipe>
public class ValueObjectTypeRecipe
extends ValueObjectTypeBase<ValueObjectTypeRecipe.ValueRecipe>
implements IValueTypeNamed<ValueObjectTypeRecipe.ValueRecipe>, IValueTypeNullable<ValueObjectTypeRecipe.ValueRecipe>
Value type with values that are recipes.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.cyclops.integrateddynamics.api.evaluate.variable.IValueType
IValueType.ValueTypeComparator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize(ValueDeseralizationContext valueDeseralizationContext, net.minecraft.nbt.Tag value) Deserialize the given value.Create an immutable default value.net.minecraft.client.resources.model.BakedModelgetVariableItemOverrideModel(ValueObjectTypeRecipe.ValueRecipe value, net.minecraft.client.resources.model.BakedModel model, net.minecraft.world.item.ItemStack stack, net.minecraft.client.multiplayer.ClientLevel world, net.minecraft.world.entity.LivingEntity livingEntity) An optional baked model to override when rendering the variable as item.booleanvoidrenderISTER(ValueObjectTypeRecipe.ValueRecipe value, net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.ItemDisplayContext transformType, com.mojang.blaze3d.vertex.PoseStack matrixStack, net.minecraft.client.renderer.MultiBufferSource buffer, int combinedLight, int combinedOverlay) Called during ISTER rendering of an variable item.net.minecraft.nbt.TagSerialize the given value.net.minecraft.network.chat.MutableComponentMethods inherited from class org.cyclops.integrateddynamics.core.evaluate.variable.ValueObjectTypeBase
isObjectMethods inherited from class org.cyclops.integrateddynamics.core.evaluate.variable.ValueTypeBase
canDeserialize, cast, correspondsTo, getDisplayColor, getDisplayColorFormat, getModId, getTranslationKey, getTypeName, getTypeNamespace, getUniqueName, getUnlocalizedPrefix, isCategory, loadTooltip, materialize, parseString, registerModelResourceLocation, toString, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.cyclops.integrateddynamics.api.evaluate.variable.IValueType
canDeserialize, cast, correspondsTo, deserializeValuePredicate, getDisplayColor, getDisplayColorFormat, getTranslationKey, getTypeName, getUniqueName, isCategory, isObject, loadTooltip, materialize, parseString, toString
-
Constructor Details
-
ValueObjectTypeRecipe
public ValueObjectTypeRecipe()
-
-
Method Details
-
getDefault
Description copied from interface:IValueTypeCreate an immutable default value.- Specified by:
getDefaultin interfaceIValueType<ValueObjectTypeRecipe.ValueRecipe>- Returns:
- The default value of this type.
-
toCompactString
public net.minecraft.network.chat.MutableComponent toCompactString(ValueObjectTypeRecipe.ValueRecipe value) - Specified by:
toCompactStringin interfaceIValueType<ValueObjectTypeRecipe.ValueRecipe>- Parameters:
value- The value- Returns:
- A short string representation used in guis to show the value.
-
serialize
Description copied from interface:IValueTypeSerialize the given value.- Specified by:
serializein interfaceIValueType<ValueObjectTypeRecipe.ValueRecipe>- Parameters:
value- The value to serialize.- Returns:
- The serialized value.
-
deserialize
public ValueObjectTypeRecipe.ValueRecipe deserialize(ValueDeseralizationContext valueDeseralizationContext, net.minecraft.nbt.Tag value) Description copied from interface:IValueTypeDeserialize the given value.- Specified by:
deserializein interfaceIValueType<ValueObjectTypeRecipe.ValueRecipe>- Parameters:
valueDeseralizationContext- Deserialization context.value- The value to deserialize.- Returns:
- The deserialized value.
-
getName
- Specified by:
getNamein interfaceIValueTypeNamed<ValueObjectTypeRecipe.ValueRecipe>
-
isNull
- Specified by:
isNullin interfaceIValueTypeNullable<ValueObjectTypeRecipe.ValueRecipe>
-
createLogicProgrammerElement
- Specified by:
createLogicProgrammerElementin interfaceIValueType<ValueObjectTypeRecipe.ValueRecipe>- Overrides:
createLogicProgrammerElementin classValueTypeBase<ValueObjectTypeRecipe.ValueRecipe>- Returns:
- A new logic programmer element for this value type.
-
getVariableItemOverrideModel
@Nullable public net.minecraft.client.resources.model.BakedModel getVariableItemOverrideModel(ValueObjectTypeRecipe.ValueRecipe value, net.minecraft.client.resources.model.BakedModel model, net.minecraft.world.item.ItemStack stack, @Nullable net.minecraft.client.multiplayer.ClientLevel world, @Nullable net.minecraft.world.entity.LivingEntity livingEntity) Description copied from interface:IValueTypeAn optional baked model to override when rendering the variable as item.- Specified by:
getVariableItemOverrideModelin interfaceIValueType<ValueObjectTypeRecipe.ValueRecipe>- Parameters:
value- The value to value to get the model for.model- The original baked model.stack- The variable stack.world- The client world.livingEntity- The entity holding the stack.- Returns:
- The overridden model. Will fallback to default if null.
-
renderISTER
public void renderISTER(ValueObjectTypeRecipe.ValueRecipe value, net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.ItemDisplayContext transformType, com.mojang.blaze3d.vertex.PoseStack matrixStack, net.minecraft.client.renderer.MultiBufferSource buffer, int combinedLight, int combinedOverlay) Description copied from interface:IValueTypeCalled during ISTER rendering of an variable item.- Specified by:
renderISTERin interfaceIValueType<ValueObjectTypeRecipe.ValueRecipe>- Parameters:
value- The value to value to render.stack- The variable stack.transformType- Transform type.matrixStack- Matrix stack.buffer- Render buffer.combinedLight- Lighting.combinedOverlay- Overlay.
-