generic renderable active flag and renaming cube -> box

This commit is contained in:
James Seibel
2024-06-30 14:27:09 -05:00
parent 305a6bb459
commit aefa0d6797
2 changed files with 125 additions and 91 deletions
@@ -10,11 +10,23 @@ import java.util.function.Consumer;
public interface IDhApiRenderableBoxGroup extends List<DhApiRenderableBox>
{
long getId();
void setActive(boolean active);
boolean isActive();
void setOriginBlockPos(DhApiVec3f pos);
DhApiVec3f getOriginBlockPos();
void setPreRenderFunc(Consumer<DhApiRenderParam> renderEventParam);
/**
* If a cube's color, position, or other property are changed this method
* must be called for those changes to render. <br><br>
*
* Note: changing the group's position via {@link #setOriginBlockPos} doesn't
* require calling this method.
*/
void triggerBoxChange();
}