SlurryBuilder
Link to slurrybuilder
This class was added by a mod with mod-id mekanism
. So you need to have this mod installed if you
want to use this feature.
Importing the class
Link to importing-the-class
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.
ZenScript Copyimport mods.mekanism.content.builder.SlurryBuilder;
Extending ChemicalBuilder
Link to extending-chemicalbuilder
SlurryBuilder extends ChemicalBuilder. That means all methods available in ChemicalBuilder are also available in SlurryBuilder
Static Methods
Link to static-methods
Name: builder
Creates a builder for registering a custom Slurry.
Returns: A builder for creating a custom Slurry.
Return Type: SlurryBuilder
ZenScript CopySlurryBuilder.builder(textureLocation as MCResourceLocation) as SlurryBuilder
Parameter | Type | Description |
---|---|---|
Parameter textureLocation | Type MCResourceLocation | Description A MCResourceLocation representing the texture this Slurry will use. |
Name: clean
Creates a builder for registering a custom Slurry, using our default clean Slurry texture.
Returns: A builder for creating a custom Slurry.
Return Type: SlurryBuilder
ZenScript Copy// SlurryBuilder.clean() as SlurryBuilder
SlurryBuilder.clean();
Name: dirty
Creates a builder for registering a custom Slurry, using our default dirty Slurry texture.
Returns: A builder for creating a custom Slurry.
Return Type: SlurryBuilder
ZenScript Copy// SlurryBuilder.dirty() as SlurryBuilder
SlurryBuilder.dirty();
Methods
Link to methods
Name: build
Create a chemical from this builder with the given name.
Return Type: void
ZenScript CopySlurryBuilder.build(name as string) as void
Parameter | Type | Description |
---|---|---|
Parameter name | Type string | Description Registry name for the chemical. |
Name: color
Sets the tint to apply to this chemical when rendering.
Return Type: CRT_BUILDER
ZenScript CopySlurryBuilder.color(color as int)
Parameter | Type | Description |
---|---|---|
Parameter color | Type int | Description Color in RRGGBB format |
Name: colorRepresentation
Sets the color representation to apply to this chemical when used for things like durability bars. Mostly for use in combination with custom textures that are not tinted.
Return Type: CRT_BUILDER
ZenScript CopySlurryBuilder.colorRepresentation(color as int)
Parameter | Type | Description |
---|---|---|
Parameter color | Type int | Description Color in RRGGBB format |
Marks that this chemical will be hidden in JEI, and not included in the preset of filled chemical tanks.
Return Type: CRT_BUILDER
ZenScript Copy// SlurryBuilder.hidden()
mySlurryBuilder.hidden();
Name: ore
Sets the tag that represents the ore that goes with this Slurry.
Return Type: SlurryBuilder
ZenScript CopySlurryBuilder.ore(oreTag as MCTag<MCItemDefinition>) as SlurryBuilder
Parameter | Type | Description |
---|---|---|
Parameter oreTag | Type MCTag<MCItemDefinition> | Description Tag representing the ore. |
Name: ore
Sets the tag that represents the ore that goes with this Slurry.
Return Type: SlurryBuilder
ZenScript CopySlurryBuilder.ore(oreTagLocation as MCResourceLocation) as SlurryBuilder
Parameter | Type | Description |
---|---|---|
Parameter oreTagLocation | Type MCResourceLocation | Description MCResourceLocation of the item tag representing the ore. |
Name: with
Adds an attribute to the set of attributes this chemical has.
Return Type: CRT_BUILDER
ZenScript CopySlurryBuilder.with(attribute as ATTRIBUTE)
Parameter | Type | Description |
---|---|---|
Parameter attribute | Type ATTRIBUTE | Description Attribute to add. |