mmb.content.modular.part.Part Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of multimachinebuilder Show documentation
Show all versions of multimachinebuilder Show documentation
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<
The 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.recipe.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;
}
}