public class HelicopterBaseEntity
extends net.minecraft.entity.EntityLivingBase
implements net.minecraftforge.fml.common.registry.IEntityAdditionalSpawnData
HelicopterBaseEntity.Seat entities and updates/handles them.| Modifier and Type | Class and Description |
|---|---|
class |
HelicopterBaseEntity.Seat |
| Modifier and Type | Field and Description |
|---|---|
static int |
FRONT |
InterpValue |
interpRotationPitch |
InterpValue |
interpRotationRoll |
InterpValue |
interpSpeed |
static int |
LEFT_SIDE |
static float |
MAX_POWER |
static float |
REQUIRED_POWER |
static int |
RIGHT_SIDE |
InterpValue |
rotorRotationAmount |
activeItemStack, activeItemStackUseCount, arrowHitTimer, attackedAtYaw, attackingPlayer, cameraPitch, dead, deathTime, HAND_STATES, hurtTime, idleTime, interpTargetPitch, interpTargetX, interpTargetY, interpTargetYaw, interpTargetZ, isJumping, isSwingInProgress, jumpMovementFactor, lastDamage, limbSwing, limbSwingAmount, maxHurtResistantTime, maxHurtTime, movedDistance, moveForward, moveStrafing, moveVertical, newPosRotationIncrements, onGroundSpeedFactor, prevCameraPitch, prevLimbSwingAmount, prevMovedDistance, prevOnGroundSpeedFactor, prevRenderYawOffset, prevRotationYawHead, prevSwingProgress, randomUnused1, randomUnused2, randomYawVelocity, recentlyHit, renderYawOffset, rotationYawHead, scoreValue, swingingHand, swingProgress, swingProgressInt, ticksElytraFlying, ticksSinceLastSwing, unused180addedToChunk, cachedUniqueIdString, capturedDrops, captureDrops, chunkCoordX, chunkCoordY, chunkCoordZ, collided, collidedHorizontally, collidedVertically, dataManager, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, fallDistance, firstUpdate, FLAGS, forceSpawn, glowing, height, hurtResistantTime, ignoreFrustumCheck, inPortal, inWater, isAirBorne, isDead, isImmuneToFire, isInWeb, lastPortalPos, lastPortalVec, lastTickPosX, lastTickPosY, lastTickPosZ, motionX, motionY, motionZ, noClip, onGround, portalCounter, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, rideCooldown, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, teleportDirection, ticksExisted, timeUntilPortal, updateBlocked, velocityChanged, width, world| Constructor and Description |
|---|
HelicopterBaseEntity(net.minecraft.world.World worldIn) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addPassenger(net.minecraft.entity.Entity passenger) |
boolean |
canBePushed()
Returns true if this entity should push and be pushed by other entities when colliding.
|
protected void |
collideWithNearbyEntities() |
protected void |
entityInit() |
java.lang.Iterable<net.minecraft.item.ItemStack> |
getArmorInventoryList() |
net.minecraft.util.math.AxisAlignedBB |
getBoundingBox()
returns the bounding box for this entity
|
net.minecraft.util.math.AxisAlignedBB |
getCollisionBox(net.minecraft.entity.Entity entityIn)
Returns a boundingBox used to collide the entity with other entities and blocks.
|
float |
getEnginePower() |
net.minecraft.item.ItemStack |
getItemStackFromSlot(net.minecraft.inventory.EntityEquipmentSlot slot) |
HelicopterModuleSpot |
getModuleSpot(ModulePosition pos) |
HelicopterModuleSpot[] |
getModuleSpots() |
net.minecraft.util.EnumHandSide |
getPrimaryHand() |
HelicopterBaseEntity.Seat |
getSeat(int id) |
boolean |
isEngineRunning() |
void |
onLivingUpdate() |
void |
prepareDefaultModules() |
boolean |
processInitialInteract(net.minecraft.entity.player.EntityPlayer player,
net.minecraft.util.EnumHand hand) |
void |
readEntityFromNBT(net.minecraft.nbt.NBTTagCompound tagCompound) |
void |
readSpawnData(io.netty.buffer.ByteBuf additionalData) |
protected void |
removePassenger(net.minecraft.entity.Entity passenger) |
void |
setDirection(MutableVec3 direction) |
void |
setEngineRunning(boolean engineRunning) |
void |
setItemStackToSlot(net.minecraft.inventory.EntityEquipmentSlot slot,
net.minecraft.item.ItemStack stack) |
boolean |
shouldSyncModules() |
void |
updateEngine(boolean engineState) |
void |
updatePassenger(net.minecraft.entity.Entity passenger) |
void |
writeEntityToNBT(net.minecraft.nbt.NBTTagCompound tagCompound) |
void |
writeSpawnData(io.netty.buffer.ByteBuf buffer) |
addPotionEffect, applyArmorCalculations, applyEntityAttributes, applyPotionDamageCalculations, areAllPotionsAmbient, attackable, attackEntityAsMob, attackEntityFrom, attemptTeleport, blockUsingShield, canBeCollidedWith, canBeHitWithPotion, canBreatheUnderwater, canDropLoot, canEntityBeSeen, clearActivePotions, collideWithEntity, curePotionEffects, damageArmor, damageEntity, damageShield, decreaseAirSupply, dismountEntity, dismountRidingEntity, dropEquipment, dropFewItems, dropLoot, fall, frostWalk, getAbsorptionAmount, getActiveHand, getActiveItemStack, getActivePotionEffect, getActivePotionEffects, getActivePotionMap, getAIMoveSpeed, getAlwaysRenderNameTagForRender, getArrowCountInEntity, getAttackingEntity, getAttributeMap, getCapability, getCombatTracker, getCreatureAttribute, getDeathSound, getEntityAttribute, getExperiencePoints, getFallSound, getHealth, getHeldItem, getHeldItemMainhand, getHeldItemOffhand, getHurtSound, getIdleTime, getItemInUseCount, getItemInUseMaxCount, getJumpUpwardsMotion, getLastAttackedEntity, getLastAttackedEntityTime, getLastDamageSource, getLook, getMaxHealth, getRevengeTarget, getRevengeTimer, getRNG, getRotationYawHead, getSoundPitch, getSoundVolume, getSwingProgress, getTicksElytraFlying, getTotalArmorValue, getWaterSlowDown, handleJumpLava, handleJumpWater, handleStatusUpdate, hasCapability, hasItemInSlot, heal, isActiveItemStackBlocking, isChild, isElytraFlying, isEntityAlive, isEntityUndead, isHandActive, isMovementBlocked, isOnLadder, isPlayer, isPlayerSleeping, isPotionActive, isPotionApplicable, isServerWorld, jump, knockBack, markPotionsDirty, markVelocityChanged, notifyDataManagerChange, onChangedPotionEffect, onDeath, onDeathUpdate, onEntityUpdate, onFinishedPotionEffect, onItemPickup, onItemUseFinish, onKillCommand, onNewPotionEffect, onUpdate, outOfWorld, performHurtAnimation, playEquipSound, playHurtSound, removeActivePotionEffect, removePotionEffect, renderBrokenItemStack, resetActiveHand, resetPotionEffectMetadata, sendEndCombat, sendEnterCombat, setAbsorptionAmount, setActiveHand, setAIMoveSpeed, setArrowCountInEntity, setHealth, setHeldItem, setJumping, setLastAttackedEntity, setPartying, setPositionAndRotationDirect, setRenderYawOffset, setRevengeTarget, setRotationYawHead, setSprinting, shouldRiderFaceForward, stopActiveHand, swingArm, travel, updateActiveHand, updateArmSwingProgress, updateDistance, updateEntityActionState, updateFallState, updateItemUse, updatePotionEffects, updatePotionMetadata, updateRiddenaddEntityCrashInfo, addTag, addTrackingPlayer, addVelocity, applyEnchantments, applyEntityCollision, applyOrientationToEntity, applyPlayerInteraction, awardKillScore, canBeAttackedWithItem, canBeRidden, canExplosionDestroyBlock, canFitPassenger, canPassengerSteer, canRenderOnFire, canRiderInteract, canTrample, canTriggerWalking, canUseCommand, changeDimension, changeDimension, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, decrementTimeUntilPortal, deserializeNBT, doBlockCollisions, doesEntityNotTriggerPressurePlate, doWaterSplashEffect, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, getAdjustedHorizontalFacing, getAir, getAlwaysRenderNameTag, getBrightness, getBrightnessForRender, getCachedUniqueIdString, getCollisionBorderSize, getCollisionBoundingBox, getCommandSenderEntity, getCommandStats, getControllingPassenger, getCustomNameTag, getDataManager, getDisplayName, getDistance, getDistance, getDistanceSq, getDistanceSq, getDistanceSq, getDistanceSqToCenter, getEntityBoundingBox, getEntityData, getEntityId, getEntityString, getEntityWorld, getEquipmentAndArmor, getExplosionResistance, getEyeHeight, getFireImmuneTicks, getFlag, getForward, getHeldEquipment, getHorizontalFacing, getHoverEvent, getIsInvulnerable, getLastPortalVec, getLookVec, getLowestRidingEntity, getMaxFallHeight, getMaxInPortalTime, getMirroredYaw, getMountedYOffset, getName, getParts, getPassengers, getPersistentID, getPickedResult, getPitchYaw, getPortalCooldown, getPosition, getPositionEyes, getPositionVector, getPushReaction, getRecursivePassengers, getRecursivePassengersByType, getRenderBoundingBox, getRenderDistanceWeight, getRidingEntity, getRotatedYaw, getServer, getSoundCategory, getSplashSound, getSwimSound, getTags, getTeam, getTeleportDirection, getUniqueID, getVectorForRotation, getYOffset, handleWaterMovement, hasCustomName, hashCode, hasNoGravity, hitByEntity, ignoreItemEntityData, isBeingRidden, isBurning, isCreatureType, isEntityEqual, isEntityInsideOpaqueBlock, isEntityInvulnerable, isGlowing, isImmuneToExplosions, isImmuneToFire, isInLava, isInRangeToRender3d, isInRangeToRenderDist, isInsideOfMaterial, isInvisible, isInvisibleToPlayer, isInWater, isNonBoss, isOffsetPositionInLiquid, isOnSameTeam, isOnScoreboardTeam, isOutsideBorder, isOverWater, isPassenger, isPushedByWater, isRiding, isRidingOrBeingRiddenBy, isRidingSameEntity, isSilent, isSneaking, isSpectatedByPlayer, isSprinting, isWet, makeFlySound, move, moveRelative, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, onCollideWithPlayer, onInsideBlock, onKillEntity, onStruckByLightning, playFlySound, playSound, playStepSound, preparePlayerToSpawn, pushOutOfBlocks, rayTrace, readFromNBT, registerFixes, removePassengers, removeTag, removeTrackingPlayer, replaceItemInInventory, resetEntityId, resetPositionToBB, sendCommandFeedback, sendMessage, serializeNBT, setAir, setAlwaysRenderNameTag, setCommandStat, setCommandStats, setCustomNameTag, setDead, setDropItemsWhenDead, setEntityBoundingBox, setEntityId, setEntityInvulnerable, setFire, setFlag, setGlowing, setInvisible, setInWeb, setLocationAndAngles, setNoGravity, setOnFireFromLava, setOutsideBorder, setPortal, setPosition, setPositionAndRotation, setPositionAndUpdate, setPositionNonDirty, setRenderDistanceWeight, setRotation, setSilent, setSize, setSneaking, setUniqueId, setVelocity, setWorld, shouldDismountInWater, shouldRenderInPass, shouldRiderSit, shouldSetPosAfterLoading, spawnRunningParticles, startRiding, startRiding, toString, turn, writeToNBT, writeToNBTAtomically, writeToNBTOptionalpublic static final int FRONT
public static final int LEFT_SIDE
public static final int RIGHT_SIDE
public static final float MAX_POWER
public static final float REQUIRED_POWER
public final InterpValue rotorRotationAmount
public final InterpValue interpRotationPitch
public final InterpValue interpRotationRoll
public final InterpValue interpSpeed
public HelicopterBaseEntity(net.minecraft.world.World worldIn)
public void prepareDefaultModules()
protected void entityInit()
entityInit in class net.minecraft.entity.EntityLivingBasepublic void readEntityFromNBT(net.minecraft.nbt.NBTTagCompound tagCompound)
readEntityFromNBT in class net.minecraft.entity.EntityLivingBasepublic java.lang.Iterable<net.minecraft.item.ItemStack> getArmorInventoryList()
getArmorInventoryList in class net.minecraft.entity.EntityLivingBasepublic net.minecraft.item.ItemStack getItemStackFromSlot(net.minecraft.inventory.EntityEquipmentSlot slot)
getItemStackFromSlot in class net.minecraft.entity.EntityLivingBasepublic void setItemStackToSlot(net.minecraft.inventory.EntityEquipmentSlot slot,
net.minecraft.item.ItemStack stack)
setItemStackToSlot in class net.minecraft.entity.EntityLivingBasepublic void writeEntityToNBT(net.minecraft.nbt.NBTTagCompound tagCompound)
writeEntityToNBT in class net.minecraft.entity.EntityLivingBasepublic void onLivingUpdate()
onLivingUpdate in class net.minecraft.entity.EntityLivingBaseprotected void collideWithNearbyEntities()
collideWithNearbyEntities in class net.minecraft.entity.EntityLivingBasepublic void updateEngine(boolean engineState)
public boolean processInitialInteract(net.minecraft.entity.player.EntityPlayer player,
net.minecraft.util.EnumHand hand)
processInitialInteract in class net.minecraft.entity.Entityprotected void addPassenger(net.minecraft.entity.Entity passenger)
addPassenger in class net.minecraft.entity.Entityprotected void removePassenger(net.minecraft.entity.Entity passenger)
removePassenger in class net.minecraft.entity.Entitypublic void updatePassenger(net.minecraft.entity.Entity passenger)
updatePassenger in class net.minecraft.entity.Entitypublic HelicopterBaseEntity.Seat getSeat(int id)
public net.minecraft.util.math.AxisAlignedBB getCollisionBox(net.minecraft.entity.Entity entityIn)
getCollisionBox in class net.minecraft.entity.Entitypublic net.minecraft.util.math.AxisAlignedBB getBoundingBox()
public boolean canBePushed()
canBePushed in class net.minecraft.entity.EntityLivingBasepublic net.minecraft.util.EnumHandSide getPrimaryHand()
getPrimaryHand in class net.minecraft.entity.EntityLivingBasepublic void writeSpawnData(io.netty.buffer.ByteBuf buffer)
writeSpawnData in interface net.minecraftforge.fml.common.registry.IEntityAdditionalSpawnDatapublic void readSpawnData(io.netty.buffer.ByteBuf additionalData)
readSpawnData in interface net.minecraftforge.fml.common.registry.IEntityAdditionalSpawnDatapublic boolean isEngineRunning()
public void setEngineRunning(boolean engineRunning)
public float getEnginePower()
public void setDirection(MutableVec3 direction)
public HelicopterModuleSpot[] getModuleSpots()
public HelicopterModuleSpot getModuleSpot(ModulePosition pos)
public boolean shouldSyncModules()