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

mmb.content.modular.part.Part Maven / Gradle / Ivy

Go to download

Dependency for the MultiMachineBuilder, a voxel game about building an industrial empire in a finite world. THIS RELEASE IS NOT PLAYABLE. To play the game, donwload from >ITCH.IO LINK HERE< or >GH releases link here<

There is a newer version: 0.6
Show newest version
/**
 * 
 */
package mmb.content.modular.part;

import java.awt.Color;
import java.awt.image.BufferedImage;

import mmb.NN;
import mmb.engine.chance.Chance;
import mmb.engine.craft.RecipeOutput;
import mmb.engine.texture.BlockDrawer;

/**
 *
 * @author oskar
 *
 */
public class Part extends PartBase implements PartEntry{
	@Override
	public Part type() {
		return this;
	}
	@Override
	public PartEntry createPart() {
		return this;
	}
	@Override
	public PartEntry partClone() {
		return this;
	}
	
	//Chainable methods
	@Override
	public Part texture(String texture) {
		setTexture(texture);
		return this;
	}
	@Override
	public Part texture(BufferedImage texture) {
		setTexture(texture);
		return this;
	}
	@Override
	public Part texture(Color texture) {
		setTexture(BlockDrawer.ofColor(texture));
		return this;
	}
	@Override
	public Part texture(BlockDrawer texture) {
		setTexture(texture);
		return this;
	}
	@Override
	public Part title(String title) {
		setTitle(title);
		return this;
	}
	@Override
	public Part describe(String description) {
		setDescription(description);
		return this;
	}
	@Override
	public Part finish(String id) {
		register(id);
		return this;
	}
	@Override
	@NN public Part volumed(double volume) {
		setVolume(volume);
		return this;
	}
	@Override public Part rtp(RecipeOutput rtp) {
		super.rtp(rtp);
		return this;
	}
	@Override public Part drop(Chance chance) {
		super.drop(chance);
		return this;
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy