All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.parzivail.util.data.TintedIdentifier Maven / Gradle / Ivy

There is a newer version: 0.0.114+1.20.2
Show newest version
package com.parzivail.util.data;

import net.minecraft.class_2960;

public class TintedIdentifier extends class_2960
{
	public enum Mode
	{
		Multiply,
		Add,
		Overlay
	}

	private final int tint;
	private final Mode tintMode;

	public TintedIdentifier(String namespace, String path, int tint)
	{
		this(namespace, path, tint, Mode.Multiply);
	}

	public TintedIdentifier(String namespace, String path, int tint, Mode mode)
	{
		super(namespace, path);
		this.tint = tint;
		this.tintMode = mode;
	}

	public TintedIdentifier(class_2960 other, int tint, Mode mode)
	{
		super(other.method_12836(), other.method_12832());
		this.tint = tint;
		this.tintMode = mode;
	}

	public int getTint()
	{
		return tint;
	}

	public Mode getTintMode()
	{
		return tintMode;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy