Class ConnectingModelDataBuilderImpl
java.lang.Object
com.supermartijn642.fusion.model.types.connecting.ConnectingModelDataBuilderImpl
- All Implemented Interfaces:
ConnectingModelDataBuilder,VanillaModelDataBuilder<ConnectingModelDataBuilder,Pair<net.minecraft.client.renderer.block.model.BlockModel, List<ConnectionPredicate>>>
Created 02/05/2023 by SuperMartijn642
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionPair<net.minecraft.client.renderer.block.model.BlockModel,List<ConnectionPredicate>> build()connection(ConnectionPredicate predicate) Adds a new connection predicate.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
-
parent
Description copied from interface:VanillaModelDataBuilderSets the parent model.- Specified by:
parentin interfaceVanillaModelDataBuilder<ConnectingModelDataBuilder,Pair<net.minecraft.client.renderer.block.model.BlockModel, List<ConnectionPredicate>>>
-
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,Pair<net.minecraft.client.renderer.block.model.BlockModel, List<ConnectionPredicate>>>
-
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,Pair<net.minecraft.client.renderer.block.model.BlockModel, List<ConnectionPredicate>>>
-
build
- Specified by:
buildin interfaceVanillaModelDataBuilder<ConnectingModelDataBuilder,Pair<net.minecraft.client.renderer.block.model.BlockModel, List<ConnectionPredicate>>>
-