public class HomeMaterial
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
HomeMaterial(java.lang.String name,
java.lang.Integer color,
HomeTexture texture,
java.lang.Float shininess)
Creates a material instance from parameters.
|
HomeMaterial(java.lang.String name,
java.lang.String key,
java.lang.Integer color,
HomeTexture texture,
java.lang.Float shininess)
Creates a material instance from parameters.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object object)
Returns
true if this material is equal to object . |
java.lang.Integer |
getColor()
Returns the color of this material.
|
java.lang.String |
getKey()
Returns the key of this material.
|
java.lang.String |
getName()
Returns the name of this material.
|
java.lang.Float |
getShininess()
Returns the shininess of this material.
|
HomeTexture |
getTexture()
Returns the texture of this material.
|
int |
hashCode()
Returns a hash code for this material.
|
public HomeMaterial(java.lang.String name, java.lang.Integer color, HomeTexture texture, java.lang.Float shininess)
public HomeMaterial(java.lang.String name, java.lang.String key, java.lang.Integer color, HomeTexture texture, java.lang.Float shininess)
public java.lang.String getName()
null
if material has no name.public java.lang.String getKey()
null
, this key should be used
as the unique identifier to find this material among the ones available on a model,
rather than the name of this material.null
if material has no key.public java.lang.Integer getColor()
null
if material color is unchanged.public HomeTexture getTexture()
null
if material texture is unchanged.public java.lang.Float getShininess()
null
if material shininess is unchanged.public boolean equals(java.lang.Object object)
true
if this material is equal to object
.equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
© Copyright 2024 Space Mushrooms
Distributed under GNU General Public License