mmb.content.modular.part.RotablePart 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<
/**
*
*/
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;
}
}