net.mostlyoriginal.api.component.graphics.Render Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of contrib-jam Show documentation
Show all versions of contrib-jam Show documentation
Jam bundle of systems and components!
The newest version!
package net.mostlyoriginal.api.component.graphics;
import net.mostlyoriginal.api.component.common.ExtendedComponent;
/**
* Indicate this entity requires rendering.
*
* Combine with specialized renderables, like Anim or Label.
*
* @author Daan van Yperen
* @see Anim
*/
public class Render extends ExtendedComponent {
/**
* target layer, higher is in front, lower is behind.
*/
public int layer = 0;
public Render() {}
public Render(int layer) {
this.layer = layer;
}
@Override
protected void reset() {
layer = 0;
}
@Override
public void set(Render render) {
layer = render.layer;
}
public void set(int layer) {
this.layer = layer;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy