public class PokeBall extends java.lang.Object implements ITranslatable
Constructor and Description |
---|
PokeBall(java.lang.String name,
java.lang.String model,
float modelRotation,
net.minecraft.util.ResourceLocation outline,
java.lang.String logic,
java.lang.String[] bases,
double catchBonus,
double breakChance,
double velocityModifier,
double gravityModifier,
boolean special,
java.lang.String json) |
Modifier and Type | Method and Description |
---|---|
net.minecraft.item.Item |
getBallItem() |
java.lang.String[] |
getBases()
Gets the possible bases for this Poké Ball.
|
java.util.Set<net.minecraft.item.Item> |
getBasesAsItems() |
double |
getBreakChance()
Gets the break chance of this Poké Ball.
|
double |
getCatchBonus()
Gets the catch bonus of this Poké Ball.
|
java.lang.String |
getFlashRedTexture()
Gets the path of the Poké Ball's flashing texture file.
|
double |
getGravityModifier()
Gets the gravity modifier of this Poké Ball.
|
java.lang.String |
getJson() |
net.minecraft.item.Item |
getLidItem() |
java.lang.String |
getLogic()
Gets the logic classpath for this Poké Ball.
|
CaptureLogic |
getLogicInstance()
Gets the instance of this Poké Ball's logic.
|
java.lang.String |
getModel()
Gets the model type of this Poké Ball.
|
GenericModelHolder<ModelPokeballs> |
getModelHolder()
Gets a
ModelPokeballs instance for the given PokeBall |
GenericModelHolder<ModelPokeballs> |
getModelHolder(boolean animate)
Gets a
ModelPokeballs instance for the given PokeBall |
float |
getModelRotation()
Gets the model rotation around the Y axis.
|
java.lang.String |
getName()
Gets the name of this Poké Ball.
|
net.minecraft.util.ResourceLocation |
getOutline()
Gets the outline ResourceLocation of this Poké Ball.
|
java.lang.String |
getOutlineTexture()
Gets the path of the Poké Ball's texture file.
|
net.minecraft.item.Item |
getRandomBaseAsItem() |
java.lang.String |
getTextureDirectory()
The directory the textures are in
defaults to "pixelmon:textures/pokeballs/"
|
net.minecraft.util.ResourceLocation |
getTextureLocation()
Gets the texture as a ResourceLocation for this Poké Ball.
|
java.lang.String |
getTranslationKey() |
double |
getVelocityModifier()
Gets the velocity modifier of this Poké Ball.
|
boolean |
hasLogic()
Gets whether this Poké Ball has extra logic or not.
|
boolean |
is(java.util.Optional<PokeBall>... pokeballs)
Checks if any of the balls in the given array match the current one
|
boolean |
is(PokeBall... pokeballs)
Checks if any of the balls in the given array match the current one
|
boolean |
isGuaranteedCatch()
Gets whether this Poké Ball is a guaranteed catch or not.
|
boolean |
isHisuian()
Checks if the
PokeBall is a Hisuian (ancient) ball |
boolean |
isSpecial()
Gets whether this Poké Ball has a special particle trail.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getLocalizedName, getTranslatedName
public PokeBall(java.lang.String name, java.lang.String model, float modelRotation, net.minecraft.util.ResourceLocation outline, java.lang.String logic, java.lang.String[] bases, double catchBonus, double breakChance, double velocityModifier, double gravityModifier, boolean special, java.lang.String json)
public java.lang.String getName()
public java.lang.String getModel()
public float getModelRotation()
public net.minecraft.util.ResourceLocation getOutline()
public java.lang.String getLogic()
public boolean hasLogic()
public CaptureLogic getLogicInstance()
public java.lang.String[] getBases()
public double getCatchBonus()
public boolean isGuaranteedCatch()
public double getBreakChance()
public double getVelocityModifier()
public double getGravityModifier()
public boolean isSpecial()
public java.lang.String getOutlineTexture()
public java.lang.String getFlashRedTexture()
public java.lang.String getTranslationKey()
getTranslationKey
in interface ITranslatable
public java.lang.String getTextureDirectory()
public net.minecraft.util.ResourceLocation getTextureLocation()
public boolean is(PokeBall... pokeballs)
pokeballs
- The balls being checked@SafeVarargs public final boolean is(java.util.Optional<PokeBall>... pokeballs)
pokeballs
- The balls being checkedpublic GenericModelHolder<ModelPokeballs> getModelHolder()
ModelPokeballs
instance for the given PokeBall
public GenericModelHolder<ModelPokeballs> getModelHolder(boolean animate)
ModelPokeballs
instance for the given PokeBall
public net.minecraft.item.Item getBallItem()
public java.util.Set<net.minecraft.item.Item> getBasesAsItems()
public net.minecraft.item.Item getRandomBaseAsItem()
public net.minecraft.item.Item getLidItem()
public java.lang.String getJson()
public boolean isHisuian()
PokeBall
is a Hisuian (ancient) ballpublic java.lang.String toString()
toString
in class java.lang.Object