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

mmb.engine.item.RotableItem 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.engine.item;

import java.awt.image.BufferedImage;

import mmb.engine.rotate.RotatedImageGroup;

/**
 * @author oskar
 *
 */
public class RotableItem extends Item implements RotableItemEntry {
	private RotatedImageGroup rig;
	@Override
	public void setTexture(BufferedImage texture) {
		rig = RotatedImageGroup.create(texture);
		super.setTexture(texture);
	}
	public RotableItem 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