Modifier and Type | Method and Description |
---|---|
int |
getDefaultSupply(World.Environment environment,
Biome biome)
Returns the default supply of this resource in that biome
|
ItemStack |
getItem()
This
ItemStack is used for display-purposes in the GEO Scanner. |
int |
getMaxDeviation()
Returns how much the value may deviate from the default supply (positive only).
|
java.lang.String |
getName()
Returns the name of this resource (e.g.
|
default java.lang.String |
getName(Player p)
This method returns a localized name for this
GEOResource in the
Language the given Player selected. |
boolean |
isObtainableFromGEOMiner()
Returns whether this Resource can be obtained using a GEO Miner.
|
default void |
register()
Registers this GEO Resource
|
int getDefaultSupply(World.Environment environment, Biome biome)
environment
- The World.Environment
this area is currently in (NORMAL / NETHER / THE_END)biome
- The Biome
this area is currently in.Chunk
with the given Biome
int getMaxDeviation()
java.lang.String getName()
ItemStack getItem()
ItemStack
is used for display-purposes in the GEO Scanner.
But will also determine the Output of the GEO Miner, if it is applicable for that.ItemStack
version of this Resource.boolean isObtainableFromGEOMiner()
default void register()
default java.lang.String getName(Player p)
GEOResource
in the
Language
the given Player
selected.p
- The Player
to localize the name for.GEOResource