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 aIDhApiRenderableBoxGroup
from the given list ofDhApiRenderableBox
where each one is positioned relative to the level's origin.createForSingleBox
(String resourceLocation, DhApiRenderableBox cube) Creates aIDhApiRenderableBoxGroup
from for the givenDhApiRenderableBox
where the box is positioned relative to the level's origin.createRelativePositionedGroup
(String resourceLocation, DhApiVec3d originBlockPos, List<DhApiRenderableBox> cubeList) Creates aIDhApiRenderableBoxGroup
from the given list ofDhApiRenderableBox
where 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 aIDhApiRenderableBoxGroup
from for the givenDhApiRenderableBox
where 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
- ifresourceLocation
is null, isn't separated by a colon, or has multiple colons.- See Also:
-
createRelativePositionedGroup
IDhApiRenderableBoxGroup createRelativePositionedGroup(String resourceLocation, DhApiVec3d originBlockPos, List<DhApiRenderableBox> cubeList) Creates aIDhApiRenderableBoxGroup
from the given list ofDhApiRenderableBox
where 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
- ifresourceLocation
is null, isn't separated by a colon, or has multiple colons.- See Also:
-
createAbsolutePositionedGroup
IDhApiRenderableBoxGroup createAbsolutePositionedGroup(String resourceLocation, List<DhApiRenderableBox> cubeList) Creates aIDhApiRenderableBoxGroup
from the given list ofDhApiRenderableBox
where 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
- ifresourceLocation
is null, isn't separated by a colon, or has multiple colons.- See Also:
-