public class EntityRobot extends EntityRobotBase implements cpw.mods.fml.common.registry.IEntityAdditionalSpawnData, net.minecraft.inventory.IInventory
| Modifier and Type | Field and Description |
|---|---|
RedstoneBoardRobot |
board |
boolean |
isDocked |
boolean |
itemActive |
float |
itemActiveStage |
float |
itemAngle1 |
float |
itemAngle2 |
net.minecraft.item.ItemStack |
itemInUse |
LaserData |
laser |
long |
lastUpdateTime |
IDockingStation |
linkedDockingStation |
AIRobotMain |
mainAI |
net.minecraft.nbt.NBTTagCompound |
originalBoardNBT |
IDockingStation |
reservedDockingStation |
static net.minecraft.util.ResourceLocation |
ROBOT_BASE |
static net.minecraft.util.ResourceLocation |
ROBOT_BUILDER |
static net.minecraft.util.ResourceLocation |
ROBOT_FACTORY |
static net.minecraft.util.ResourceLocation |
ROBOT_TRANSPORT |
SafeTimeTracker |
scanForTasks |
MAX_ENERGY, SAFETY_ENERGYdefaultPitch, equipmentDropChances, experienceValue, livingSoundTime, numTicksToChaseTarget, targetTasks, tasksarrowHitTimer, attackedAtYaw, attackingPlayer, attackTime, cameraPitch, dead, deathTime, entityAge, field_110154_aX, field_70741_aB, field_70763_ax, field_70764_aw, field_70768_au, field_70769_ao, field_70770_ap, hurtTime, isJumping, isSwingInProgress, jumpMovementFactor, lastDamage, limbSwing, limbSwingAmount, maxHurtResistantTime, maxHurtTime, moveForward, moveStrafing, newPosRotationIncrements, newPosX, newPosY, newPosZ, newRotationPitch, newRotationYaw, prevCameraPitch, prevHealth, prevLimbSwingAmount, prevRenderYawOffset, prevRotationYawHead, prevSwingProgress, randomYawVelocity, recentlyHit, renderYawOffset, rotationYawHead, scoreValue, swingProgress, swingProgressIntaddedToChunk, boundingBox, capturedDrops, captureDrops, chunkCoordX, chunkCoordY, chunkCoordZ, dataWatcher, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, extendedProperties, fallDistance, field_70135_K, fireResistance, forceSpawn, height, hurtResistantTime, ignoreFrustumCheck, inPortal, inWater, isAirBorne, isCollided, isCollidedHorizontally, isCollidedVertically, isDead, isImmuneToFire, isInWeb, lastTickPosX, lastTickPosY, lastTickPosZ, motionX, motionY, motionZ, myEntitySize, noClip, onGround, portalCounter, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, renderDistanceWeight, riddenByEntity, ridingEntity, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, teleportDirection, ticksExisted, timeUntilPortal, velocityChanged, width, worldObj, yOffset, ySize| Constructor and Description |
|---|
EntityRobot(net.minecraft.world.World world) |
EntityRobot(net.minecraft.world.World world,
net.minecraft.nbt.NBTTagCompound boardNBT) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptTask(IRobotTask task) |
void |
aimItemAt(int x,
int y,
int z) |
void |
applyEntityCollision(net.minecraft.entity.Entity par1Entity) |
void |
attackTargetEntityWithCurrentItem(net.minecraft.entity.Entity par1Entity) |
boolean |
canBePushed() |
protected boolean |
canDespawn() |
void |
closeInventory() |
protected void |
collideWithEntity(net.minecraft.entity.Entity par1Entity) |
boolean |
containsItems() |
net.minecraft.item.ItemStack |
decrStackSize(int var1,
int var2) |
void |
dock(IDockingStation station) |
protected void |
entityInit() |
protected void |
fall(float par1) |
RedstoneBoardRobot |
getBoard() |
DockingStation |
getDockingStation() |
double |
getEnergy() |
net.minecraft.item.ItemStack |
getEquipmentInSlot(int var1) |
net.minecraft.item.ItemStack |
getHeldItem() |
java.lang.String |
getInventoryName() |
int |
getInventoryStackLimit() |
net.minecraft.item.ItemStack[] |
getLastActiveItems() |
IDockingStation |
getLinkedStation() |
AIRobot |
getOverridingAI() |
IDockingStation |
getReservedStation() |
int |
getSizeInventory() |
net.minecraft.item.ItemStack |
getStackInSlot(int var1) |
net.minecraft.item.ItemStack |
getStackInSlotOnClosing(int var1) |
net.minecraft.util.ResourceLocation |
getTexture() |
IZone |
getZoneToWork() |
boolean |
hasCustomInventoryName() |
void |
hideLaser() |
protected void |
init() |
boolean |
isInRangeToRenderDist(double par1) |
boolean |
isItemValidForSlot(int var1,
net.minecraft.item.ItemStack var2) |
boolean |
isKnownUnreachable(net.minecraft.entity.Entity entity) |
boolean |
isMoving() |
boolean |
isOnLadder() |
boolean |
isUseableByPlayer(net.minecraft.entity.player.EntityPlayer var1) |
boolean |
linkToStation(IDockingStation iStation) |
void |
markDirty() |
void |
moveEntityWithHeading(float par1,
float par2) |
void |
onUpdate() |
void |
openInventory() |
void |
overrideAI(AIRobot ai) |
void |
readEntityFromNBT(net.minecraft.nbt.NBTTagCompound nbt) |
void |
readSpawnData(io.netty.buffer.ByteBuf data) |
void |
requestInitialization(RPCMessageInfo info) |
boolean |
reserveStation(IDockingStation iStation) |
void |
setCurrentItemOrArmor(int i,
net.minecraft.item.ItemStack itemstack) |
void |
setDead() |
void |
setEnergy(double energy) |
void |
setHealth(float par1) |
void |
setInventorySlotContents(int var1,
net.minecraft.item.ItemStack var2) |
void |
setItemActive(boolean isActive) |
void |
setItemInUse(net.minecraft.item.ItemStack stack) |
void |
setLaserDestination(float x,
float y,
float z) |
void |
setNullBoundingBox() |
void |
setRegularBoundingBox() |
void |
showLaser() |
void |
undock() |
void |
unreachableEntityDetected(net.minecraft.entity.Entity entity) |
protected void |
updateDataClient() |
protected void |
updateDataServer() |
protected void |
updateFallState(double par1,
boolean par3) |
void |
writeEntityToNBT(net.minecraft.nbt.NBTTagCompound nbt) |
void |
writeSpawnData(io.netty.buffer.ByteBuf data) |
addRandomArmor, allowLeashing, applyEntityAttributes, canAttackClass, canBeSteered, canPickUpLoot, clearLeashed, despawnEntity, dropEquipment, dropFewItems, eatGrassBonus, enchantEquipment, faceEntity, func_110146_f, func_110163_bv, func_130225_q, getAlwaysRenderNameTag, getAlwaysRenderNameTagForRender, getArmorItemForSlot, getArmorPosition, getAttackTarget, getCanSpawnHere, getCommandSenderName, getCustomNameTag, getDropItem, getEntitySenses, getExperiencePoints, getJumpHelper, getLeashed, getLeashedToEntity, getLivingSound, getLookHelper, getMaxSafePointTries, getMaxSpawnedInChunk, getMoveHelper, getNavigator, getRenderSizeModifier, getTalkInterval, getVerticalFaceSpeed, hasCustomNameTag, interact, interactFirst, isAIEnabled, isNoDespawnRequired, onEntityUpdate, onLivingUpdate, onSpawnWithEgg, playLivingSound, setAIMoveSpeed, setAlwaysRenderNameTag, setAttackTarget, setCanPickUpLoot, setCustomNameTag, setEquipmentDropChance, setLeashedToEntity, setMoveForward, spawnExplosionParticle, updateAITasks, updateEntityActionState, updateLeashedStateaddPotionEffect, applyArmorCalculations, applyPotionDamageCalculations, attackEntityAsMob, attackEntityFrom, canBeCollidedWith, canBreatheUnderwater, canEntityBeSeen, clearActivePotions, collideWithNearbyEntities, curePotionEffects, damageArmor, damageEntity, decreaseAirSupply, dismountEntity, dropRareDrop, func_110142_aN, func_142015_aE, func_146066_aG, func_146067_o, func_152111_bt, func_152112_bu, func_94060_bK, getAbsorptionAmount, getActivePotionEffect, getActivePotionEffects, getAge, getAIMoveSpeed, getAITarget, getArrowCountInEntity, getAttributeMap, getCreatureAttribute, getDeathSound, getEntityAttribute, getEyeHeight, getHealth, getHurtSound, getItemIcon, getLastAttacker, getLastAttackerTime, getLook, getLookVec, getMaxHealth, getPosition, getRNG, getRotationYawHead, getSoundPitch, getSoundVolume, getSwingProgress, getTeam, getTotalArmorValue, handleHealthUpdate, heal, isChild, isClientWorld, isEntityAlive, isEntityUndead, isMovementBlocked, isOnSameTeam, isOnTeam, isPlayer, isPlayerSleeping, isPotionActive, isPotionActive, isPotionApplicable, jump, kill, knockBack, onChangedPotionEffect, onDeath, onDeathUpdate, onFinishedPotionEffect, onItemPickup, onNewPotionEffect, performHurtAnimation, rayTrace, removePotionEffect, removePotionEffectClient, renderBrokenItemStack, setAbsorptionAmount, setArrowCountInEntity, setBeenAttacked, setJumping, setLastAttacker, setPositionAndRotation2, setPositionAndUpdate, setRevengeTarget, setRotationYawHead, setSprinting, shouldRiderFaceForward, swingItem, updateAITick, updateArmSwingProgress, updatePotionEffects, updateRiddenaddEntityCrashInfo, addToPlayerScore, addVelocity, canAttackWithItem, canRenderOnFire, canRiderInteract, canTriggerWalking, copyDataFrom, copyLocationAndAnglesFrom, dealFireDamage, doesEntityNotTriggerPressurePlate, dropItem, entityDropItem, equals, extinguish, func_145748_c_, func_145771_j, func_145772_a, func_145774_a, func_145775_I, func_145778_a, func_145780_a, func_145781_i, getAir, getBoundingBox, getBrightness, getBrightnessForRender, getCollisionBorderSize, getCollisionBox, getDataWatcher, getDistance, getDistanceSq, getDistanceSqToEntity, getDistanceToEntity, getEntityData, getEntityId, getEntityString, getExtendedProperties, getFlag, getMaxInPortalTime, getMountedYOffset, getParts, getPersistentID, getPickedResult, getPortalCooldown, getShadowSize, getSplashSound, getSwimSound, getTeleportDirection, getUniqueID, getYOffset, handleLavaMovement, handleWaterMovement, hashCode, hitByEntity, isBurning, isCreatureType, isEating, isEntityEqual, isEntityInsideOpaqueBlock, isEntityInvulnerable, isImmuneToFire, isInRangeToRender3d, isInsideOfMaterial, isInvisible, isInvisibleToPlayer, isInWater, isOffsetPositionInLiquid, isPushedByWater, isRiding, isSneaking, isSprinting, isWet, mountEntity, moveEntity, moveFlying, newDoubleNBTList, newFloatNBTList, onChunkLoad, onCollideWithPlayer, onKillEntity, onStruckByLightning, playSound, preparePlayerToSpawn, readFromNBT, registerExtendedProperties, resetEntityId, setAir, setAngles, setEating, setEntityId, setFire, setFlag, setInPortal, setInvisible, setInWeb, setLocationAndAngles, setOnFireFromLava, setPosition, setPositionAndRotation, setRotation, setSize, setSneaking, setVelocity, setWorld, shouldDismountInWater, shouldRenderInPass, shouldRiderSit, shouldSetPosAfterLoading, toString, travelToDimension, updateRiderPosition, writeMountToNBT, writeToNBT, writeToNBTOptionalpublic static final net.minecraft.util.ResourceLocation ROBOT_BASE
public static final net.minecraft.util.ResourceLocation ROBOT_BUILDER
public static final net.minecraft.util.ResourceLocation ROBOT_TRANSPORT
public static final net.minecraft.util.ResourceLocation ROBOT_FACTORY
public SafeTimeTracker scanForTasks
public LaserData laser
public IDockingStation reservedDockingStation
public IDockingStation linkedDockingStation
public boolean isDocked
public net.minecraft.nbt.NBTTagCompound originalBoardNBT
public RedstoneBoardRobot board
public AIRobotMain mainAI
public net.minecraft.item.ItemStack itemInUse
public float itemAngle1
public float itemAngle2
public boolean itemActive
public float itemActiveStage
public long lastUpdateTime
public EntityRobot(net.minecraft.world.World world,
net.minecraft.nbt.NBTTagCompound boardNBT)
public EntityRobot(net.minecraft.world.World world)
protected void entityInit()
entityInit in class net.minecraft.entity.EntityLivingprotected void updateDataClient()
protected void updateDataServer()
protected void init()
public void setLaserDestination(float x,
float y,
float z)
public void showLaser()
public void hideLaser()
public void onUpdate()
onUpdate in class net.minecraft.entity.EntityLivingpublic void setRegularBoundingBox()
public void setNullBoundingBox()
public void writeSpawnData(io.netty.buffer.ByteBuf data)
writeSpawnData in interface cpw.mods.fml.common.registry.IEntityAdditionalSpawnDatapublic void readSpawnData(io.netty.buffer.ByteBuf data)
readSpawnData in interface cpw.mods.fml.common.registry.IEntityAdditionalSpawnDatapublic net.minecraft.item.ItemStack getHeldItem()
getHeldItem in class net.minecraft.entity.EntityLivingpublic void setCurrentItemOrArmor(int i,
net.minecraft.item.ItemStack itemstack)
setCurrentItemOrArmor in class net.minecraft.entity.EntityLivingpublic net.minecraft.item.ItemStack[] getLastActiveItems()
getLastActiveItems in class net.minecraft.entity.EntityLivingprotected void fall(float par1)
fall in class net.minecraft.entity.EntityLivingBaseprotected void updateFallState(double par1,
boolean par3)
updateFallState in class net.minecraft.entity.EntityLivingBasepublic void moveEntityWithHeading(float par1,
float par2)
moveEntityWithHeading in class net.minecraft.entity.EntityLivingBasepublic boolean isOnLadder()
isOnLadder in class net.minecraft.entity.EntityLivingBasepublic net.minecraft.util.ResourceLocation getTexture()
public void writeEntityToNBT(net.minecraft.nbt.NBTTagCompound nbt)
writeEntityToNBT in class net.minecraft.entity.EntityLivingpublic void readEntityFromNBT(net.minecraft.nbt.NBTTagCompound nbt)
readEntityFromNBT in class net.minecraft.entity.EntityLivingpublic void dock(IDockingStation station)
dock in class EntityRobotBasepublic void undock()
undock in class EntityRobotBasepublic DockingStation getDockingStation()
getDockingStation in class EntityRobotBasepublic boolean reserveStation(IDockingStation iStation)
reserveStation in class EntityRobotBasepublic boolean linkToStation(IDockingStation iStation)
linkToStation in class EntityRobotBasepublic net.minecraft.item.ItemStack getEquipmentInSlot(int var1)
getEquipmentInSlot in class net.minecraft.entity.EntityLivingpublic boolean acceptTask(IRobotTask task)
public int getSizeInventory()
getSizeInventory in interface net.minecraft.inventory.IInventorypublic net.minecraft.item.ItemStack getStackInSlot(int var1)
getStackInSlot in interface net.minecraft.inventory.IInventorypublic net.minecraft.item.ItemStack decrStackSize(int var1,
int var2)
decrStackSize in interface net.minecraft.inventory.IInventorypublic net.minecraft.item.ItemStack getStackInSlotOnClosing(int var1)
getStackInSlotOnClosing in interface net.minecraft.inventory.IInventorypublic void setInventorySlotContents(int var1,
net.minecraft.item.ItemStack var2)
setInventorySlotContents in interface net.minecraft.inventory.IInventorypublic java.lang.String getInventoryName()
getInventoryName in interface net.minecraft.inventory.IInventorypublic boolean hasCustomInventoryName()
hasCustomInventoryName in interface net.minecraft.inventory.IInventorypublic int getInventoryStackLimit()
getInventoryStackLimit in interface net.minecraft.inventory.IInventorypublic void markDirty()
markDirty in interface net.minecraft.inventory.IInventorypublic boolean isUseableByPlayer(net.minecraft.entity.player.EntityPlayer var1)
isUseableByPlayer in interface net.minecraft.inventory.IInventorypublic void openInventory()
openInventory in interface net.minecraft.inventory.IInventorypublic void closeInventory()
closeInventory in interface net.minecraft.inventory.IInventorypublic boolean isItemValidForSlot(int var1,
net.minecraft.item.ItemStack var2)
isItemValidForSlot in interface net.minecraft.inventory.IInventorypublic boolean isMoving()
isMoving in class EntityRobotBasepublic void setItemInUse(net.minecraft.item.ItemStack stack)
setItemInUse in class EntityRobotBasepublic void requestInitialization(RPCMessageInfo info)
public void setHealth(float par1)
setHealth in class net.minecraft.entity.EntityLivingBasepublic void aimItemAt(int x,
int y,
int z)
aimItemAt in class EntityRobotBasepublic void setItemActive(boolean isActive)
setItemActive in class EntityRobotBasepublic RedstoneBoardRobot getBoard()
getBoard in class EntityRobotBasepublic IDockingStation getLinkedStation()
getLinkedStation in class EntityRobotBasepublic IDockingStation getReservedStation()
getReservedStation in class EntityRobotBasepublic boolean isInRangeToRenderDist(double par1)
isInRangeToRenderDist in class net.minecraft.entity.Entitypublic double getEnergy()
getEnergy in class EntityRobotBasepublic void setEnergy(double energy)
setEnergy in class EntityRobotBaseprotected boolean canDespawn()
canDespawn in class net.minecraft.entity.EntityLivingpublic AIRobot getOverridingAI()
public void overrideAI(AIRobot ai)
public void attackTargetEntityWithCurrentItem(net.minecraft.entity.Entity par1Entity)
public IZone getZoneToWork()
getZoneToWork in class EntityRobotBasepublic boolean containsItems()
containsItems in class EntityRobotBasepublic void unreachableEntityDetected(net.minecraft.entity.Entity entity)
unreachableEntityDetected in class EntityRobotBasepublic boolean isKnownUnreachable(net.minecraft.entity.Entity entity)
isKnownUnreachable in class EntityRobotBasepublic void setDead()
setDead in class net.minecraft.entity.Entitypublic boolean canBePushed()
canBePushed in class net.minecraft.entity.EntityLivingBaseprotected void collideWithEntity(net.minecraft.entity.Entity par1Entity)
collideWithEntity in class net.minecraft.entity.EntityLivingBasepublic void applyEntityCollision(net.minecraft.entity.Entity par1Entity)
applyEntityCollision in class net.minecraft.entity.Entity