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

mmb.content.modular.part.PartEntity 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 mmb.Nil;

/**
 *
 * @author oskar
 *
 */
public abstract class PartEntity implements PartEntry {
	protected abstract int hash0();
	protected abstract boolean equal0(PartEntity other);

	@Override
	public final int hashCode() {
		return 31*super.hashCode() + hash0();
	}

	@Override
	public final boolean equals(@Nil Object obj) {
		if(this == obj) return true;
		if(obj == null) return false;
		if(getClass() != obj.getClass()) return false;
		PartEntity other = (PartEntity) obj;
		return equal0(other);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy