Class ConnectingModelDataBuilderImpl
java.lang.Object
com.supermartijn642.fusion.model.types.connecting.ConnectingModelDataBuilderImpl
- All Implemented Interfaces:
ConnectingModelDataBuilder,VanillaModelDataBuilder<ConnectingModelDataBuilder,ConnectingModelData>
Created 02/05/2023 by SuperMartijn642
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()connection(ConnectionPredicate predicate) Adds a new connection predicate.connection(String texture, ConnectionPredicate predicate) Adds a new connection predicate for the given texture.parent(net.minecraft.resources.ResourceLocation parent) Sets the parent model.Puts the given reference under the given key.Puts the given texture under the given key.
-
Constructor Details
-
ConnectingModelDataBuilderImpl
public ConnectingModelDataBuilderImpl()
-
-
Method Details
-
connection
Description copied from interface:ConnectingModelDataBuilderAdds a new connection predicate. Of the added predicates, only one needs to be satisfied to form a connection. In case multiple predicates should be satisfied, useDefaultConnectionPredicates.and(ConnectionPredicate...).- Specified by:
connectionin interfaceConnectingModelDataBuilder
-
connection
Description copied from interface:ConnectingModelDataBuilderAdds a new connection predicate for the given texture. Of the added predicates, only one needs to be satisfied to form a connection. In case multiple predicates should be satisfied, useDefaultConnectionPredicates.and(ConnectionPredicate...).- Specified by:
connectionin interfaceConnectingModelDataBuilder
-
parent
Description copied from interface:VanillaModelDataBuilderSets the parent model.- Specified by:
parentin interfaceVanillaModelDataBuilder<ConnectingModelDataBuilder,ConnectingModelData>
-
texture
Description copied from interface:VanillaModelDataBuilderPuts the given reference under the given key. These keys may be used when on faces for elements of this model or its parent's.- Specified by:
texturein interfaceVanillaModelDataBuilder<ConnectingModelDataBuilder,ConnectingModelData>
-
texture
public ConnectingModelDataBuilder texture(String key, net.minecraft.resources.ResourceLocation texture) Description copied from interface:VanillaModelDataBuilderPuts the given texture under the given key. These keys may be used when on faces for elements of this model or its parent's.- Specified by:
texturein interfaceVanillaModelDataBuilder<ConnectingModelDataBuilder,ConnectingModelData>
-
build
- Specified by:
buildin interfaceVanillaModelDataBuilder<ConnectingModelDataBuilder,ConnectingModelData>
-