[SBW] ColorableLib
No reviews yet
SuperbWarfare library for easy vehicle coloring.
Focuses on automation and resource processing through scientific and mechanical means, utilizing systems like electricity (RF/FE/etc), air pressure, or rotation.
Includes quality of life improvements and small tweaks to enhance and customize gameplay.
Provides a framework or library for other mods to use.
Forge is a popular mod loader for versions 1.1+ of Minecraft.
Community voices
Reviews
Click once to include, again to exclude, again to clear
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
Compatibility
Supported Environments
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
Resources
External Links
About
Description
Library used to easily implement SuperbWarfare vehicles coloring.
ColorableLib is a lightweight library dedicated for SuperbWarfare addons. ColorableLib is based on Capability logic and implements management engine and automatic server-client synchronization, also changing SuperbWarfere vehicle renderer.
import colorable.capability.EntityColorCapability;
import net.minecraft.world.entity.Entity;
/**
* Example usage of the ColorableLib API.
*/
public class ColorableExample {
/**
* Demonstrates how to manipulate entity color layers.
*
* @param targetEntity The entity to be colored (must support the capability).
* @param color Color in decimal or hex format (e.g., 0xFF0000 for red).
*/
public void exampleMethod(Entity targetEntity, int color) {
// Access the color capability of the target entity
targetEntity.getCapability(EntityColorCapability.CAPABILITY).ifPresent(cap -> {
if (!targetEntity.level().isClientSide) {
// Add or update a specific color layer
cap.setLayer(targetEntity, "example_id", color);
// Removed a specified layer
cap.removeLayer(targetEntity, "example_id");
}
});
}
}
Library used to easily implement SuperbWarfare vehicles coloring.
ColorableLib is a lightweight library dedicated for SuperbWarfare addons. ColorableLib is based on Capability logic and implements management engine and automatic server-client synchronization, also changing SuperbWarfere vehicle renderer.
import colorable.capability.EntityColorCapability;
import net.minecraft.world.entity.Entity;
/**
* Example usage of the ColorableLib API.
*/
public class ColorableExample {
/**
* Demonstrates how to manipulate entity color layers.
*
* @param targetEntity The entity to be colored (must support the capability).
* @param color Color in decimal or hex format (e.g., 0xFF0000 for red).
*/
public void exampleMethod(Entity targetEntity, int color) {
// Access the color capability of the target entity
targetEntity.getCapability(EntityColorCapability.CAPABILITY).ifPresent(cap -> {
if (!targetEntity.level().isClientSide) {
// Add or update a specific color layer
cap.setLayer(targetEntity, "example_id", color);
// Removed a specified layer
cap.removeLayer(targetEntity, "example_id");
}
});
}
}
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
On ModDex
Community snapshot
By the numbers
Statistics
Want to reach Minecraft players?
We're looking for a server hosting partner to feature here and other parts of the site. Interested? Send us a message!
Get in touchGet it on
Available Platforms
On ModDex
Community snapshot
By the numbers
Statistics
Resources