Interface IDhApiCustomRenderObjectFactory
public interface IDhApiCustomRenderObjectFactory
Handles creating
IDhApiRenderableBoxGroup objects,
which can be added via a IDhApiCustomRenderRegister.- Since:
- API 3.0.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptioncreateAbsolutePositionedGroup(String resourceLocation, List<DhApiRenderableBox> cubeList) Creates aIDhApiRenderableBoxGroupfrom the given list ofDhApiRenderableBoxwhere each one is positioned relative to the level's origin.createForSingleBox(String resourceLocation, DhApiRenderableBox cube) Creates aIDhApiRenderableBoxGroupfrom for the givenDhApiRenderableBoxwhere the box is positioned relative to the level's origin.createRelativePositionedGroup(String resourceLocation, DhApiVec3d originBlockPos, List<DhApiRenderableBox> cubeList) Creates aIDhApiRenderableBoxGroupfrom the given list ofDhApiRenderableBoxwhere each one is positioned relative to givenoriginBlockPos, which in turn is relative to the level's origin.
-
Method Details
-
createForSingleBox
IDhApiRenderableBoxGroup createForSingleBox(String resourceLocation, DhApiRenderableBox cube) throws IllegalArgumentException Creates aIDhApiRenderableBoxGroupfrom for the givenDhApiRenderableBoxwhere the box is positioned relative to the level's origin.- Parameters:
resourceLocation- A colon separated Resource Location string, similar to vanilla Minecraft, for example: "DistantHorizons:Clouds"- Throws:
IllegalArgumentException- ifresourceLocationis null, isn't separated by a colon, or has multiple colons.- See Also:
-
createRelativePositionedGroup
IDhApiRenderableBoxGroup createRelativePositionedGroup(String resourceLocation, DhApiVec3d originBlockPos, List<DhApiRenderableBox> cubeList) Creates aIDhApiRenderableBoxGroupfrom the given list ofDhApiRenderableBoxwhere each one is positioned relative to givenoriginBlockPos, which in turn is relative to the level's origin.- Parameters:
resourceLocation- A colon separated Resource Location string, similar to vanilla Minecraft, for example: "DistantHorizons:Clouds"originBlockPos- The starting position for thisIDhApiRenderableBoxGroup, can be changed during runtime.- Throws:
IllegalArgumentException- ifresourceLocationis null, isn't separated by a colon, or has multiple colons.- See Also:
-
createAbsolutePositionedGroup
IDhApiRenderableBoxGroup createAbsolutePositionedGroup(String resourceLocation, List<DhApiRenderableBox> cubeList) Creates aIDhApiRenderableBoxGroupfrom the given list ofDhApiRenderableBoxwhere each one is positioned relative to the level's origin.- Parameters:
resourceLocation- A colon separated Resource Location string, similar to vanilla Minecraft, for example: "DistantHorizons:Clouds"- Throws:
IllegalArgumentException- ifresourceLocationis null, isn't separated by a colon, or has multiple colons.- See Also:
-