Package net.minecraft.src
Class MobSpawnerBaseLogic
java.lang.Object
net.minecraft.src.MobSpawnerBaseLogic
-
Field Summary
FieldsModifier and TypeFieldDescriptiondoubledoubleintThe delay to spawn. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanRun()Returns true if there's a player close enough to this mob spawner to activate it.func_98265_a(Entity par1Entity) abstract voidfunc_98267_a(int var1) Gets the entity name that should be spawned.abstract Worldabstract intabstract intabstract intbooleanvoidonDecay()voidreadFromNBT(NBTTagCompound par1NBTTagCompound) booleansetDelayToMin(int par1) Sets the delay to minDelay if parameter given is 1, else return false.voidvoidsetRandomMinecart(WeightedRandomMinecart par1WeightedRandomMinecart) voidvoidwriteToNBT(NBTTagCompound par1NBTTagCompound)
-
Field Details
-
spawnDelay
public int spawnDelayThe delay to spawn. -
field_98287_c
public double field_98287_c -
field_98284_d
public double field_98284_d
-
-
Constructor Details
-
MobSpawnerBaseLogic
public MobSpawnerBaseLogic()
-
-
Method Details
-
getEntityNameToSpawn
Gets the entity name that should be spawned. -
setMobID
-
canRun
public boolean canRun()Returns true if there's a player close enough to this mob spawner to activate it. -
updateSpawner
public void updateSpawner() -
func_98265_a
-
readFromNBT
-
writeToNBT
-
func_98281_h
-
setDelayToMin
public boolean setDelayToMin(int par1) Sets the delay to minDelay if parameter given is 1, else return false. -
getRandomMinecart
-
setRandomMinecart
-
hasReachedSpawnCap
public boolean hasReachedSpawnCap() -
func_98267_a
public abstract void func_98267_a(int var1) -
getSpawnerWorld
-
getSpawnerX
public abstract int getSpawnerX() -
getSpawnerY
public abstract int getSpawnerY() -
getSpawnerZ
public abstract int getSpawnerZ() -
onDecay
public void onDecay()
-