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

mmb.content.modular.part.RotablePart 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<

The newest version!
/**
 * 
 */
package mmb.content.modular.part;

import java.awt.image.BufferedImage;

import mmb.engine.rotate.RotatedImageGroup;

/**
 * @author oskar
 *
 */
public class RotablePart extends Part implements RotablePartEntry {
	private RotatedImageGroup rig;
	@Override
	public void setTexture(BufferedImage texture) {
		rig = RotatedImageGroup.create(texture);
		super.setTexture(texture);
	}
	public RotablePart setTexture(RotatedImageGroup texture) {
		rig = texture;
		super.setTexture(texture.U);
		return this;
	}
	/** @return the rotated texture */
	@Override
	public RotatedImageGroup rig() {
		return rig;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy