public class EntityDrone extends EntityDroneBase implements IManoMeasurable, IPneumaticWrenchable, net.minecraftforge.fml.common.registry.IEntityAdditionalSpawnData, IHackableEntity, IDroneBase, net.minecraft.entity.passive.IFlyingAnimal, IUpgradeHolder
| Modifier and Type | Class and Description |
|---|---|
class |
EntityDrone.MinigunDrone |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NBT_DRONE_COLOR |
net.minecraft.util.text.ITextComponent |
ownerName |
java.util.List<IProgWidget> |
progWidgets |
laserExtension, oldLaserExtension, oldPropRotation, propRotationambientSoundTime, armorDropChances, goalSelector, handDropChances, jumpControl, lookControl, moveControl, navigation, targetSelector, xpRewardanimationPosition, animationSpeed, animationSpeedOld, animStep, animStepO, attackAnim, attackStrengthTicker, autoSpinAttackTicks, brain, DATA_LIVING_ENTITY_FLAGS, dead, deathScore, deathTime, fallFlyTicks, flyingSpeed, hurtDir, hurtDuration, hurtTime, invulnerableDuration, jumping, lastHurt, lastHurtByPlayer, lastHurtByPlayerTime, lerpHeadSteps, lerpSteps, lerpX, lerpXRot, lerpY, lerpYRot, lerpZ, lyHeadRot, noActionTime, oAttackAnim, oRun, removeArrowTime, removeStingerTime, rotA, rotOffs, run, SLEEPING_DIMENSIONS, swinging, swingingArm, swingTime, timeOffs, useItem, useItemRemaining, xxa, yBodyRot, yBodyRotO, yHeadRot, yHeadRotO, yya, zzablocksBuilding, boardingCooldown, DATA_POSE, DATA_SHARED_FLAGS_ID, entityData, fallDistance, firstTick, fluidHeight, fluidOnEyes, forcedLoading, glowing, hasImpulse, horizontalCollision, hurtMarked, inChunk, invulnerableTime, isInsidePortal, level, LOGGER, maxUpStep, moveDist, noCulling, noPhysics, onGround, portalEntrancePos, portalTime, pushthrough, random, removed, stringUUID, stuckSpeedMultiplier, tickCount, uuid, verticalCollision, walkDist, walkDistO, wasEyeInWater, wasTouchingWater, xChunk, xo, xOld, xRot, xRotO, yChunk, yo, yOld, yRot, yRotO, zChunk, zo, zOld| Constructor and Description |
|---|
EntityDrone(net.minecraft.entity.EntityType<? extends EntityDrone> type,
net.minecraft.world.World world) |
EntityDrone(net.minecraft.world.World world,
net.minecraft.entity.player.PlayerEntity player) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAdditionalSaveData(net.minecraft.nbt.CompoundNBT tag) |
void |
addAirToDrone(int air) |
void |
addHackInfo(net.minecraft.entity.Entity entity,
java.util.List<net.minecraft.util.text.ITextComponent> curInfo,
net.minecraft.entity.player.PlayerEntity player)
Add info that is displayed on the tracker tooltip here.
|
void |
addPostHackInfo(net.minecraft.entity.Entity entity,
java.util.List<net.minecraft.util.text.ITextComponent> curInfo,
net.minecraft.entity.player.PlayerEntity player)
Add info that is being displayed after hacking, as long as 'afterHackTick' is returning true.
|
boolean |
addProgram(net.minecraft.util.math.BlockPos clickPos,
net.minecraft.util.Direction facing,
net.minecraft.util.math.BlockPos placePos,
net.minecraft.item.ItemStack droneStack,
java.util.List<IProgWidget> progWidgets)
Add an initial program to a drone that's about to be placed.
|
boolean |
afterHackTick(net.minecraft.entity.Entity entity)
Called every tick after the hacking finished.
|
boolean |
canBreatheUnderwater() |
boolean |
canHack(net.minecraft.entity.Entity entity,
net.minecraft.entity.player.PlayerEntity player)
Returning true will allow the player to hack this entity.
|
boolean |
canMoveIntoFluid(net.minecraft.fluid.Fluid fluid) |
net.minecraft.entity.Entity |
changeDimension(net.minecraft.world.server.ServerWorld p_241206_1_,
net.minecraftforge.common.util.ITeleporter teleporter) |
protected net.minecraft.pathfinding.PathNavigator |
createNavigation(net.minecraft.world.World worldIn) |
protected int |
decreaseAirSupply(int par1)
Decrements the entity's air supply when underwater
|
protected void |
defineSynchedData() |
void |
die(net.minecraft.util.DamageSource damageSource) |
boolean |
doHurtTarget(net.minecraft.entity.Entity entity) |
protected void |
dropEquipment() |
void |
dropItem(net.minecraft.item.ItemStack stack)
Cause the drone to drop the given item at its position.
|
int |
getActiveWidgetIndex() |
net.minecraft.network.IPacket<?> |
getAddEntityPacket() |
DroneAIManager |
getAIManager() |
protected BasicAirHandler |
getAirHandler() |
int |
getAmmoColor() |
int |
getArmorValue() |
int |
getAttackCount() |
<T> net.minecraftforge.common.util.LazyOptional<T> |
getCapability(net.minecraftforge.common.capabilities.Capability<T> capability,
net.minecraft.util.Direction facing) |
java.util.List<net.minecraft.entity.Entity> |
getCarryingEntities()
Get the list of entities currently carried by this drone.
|
net.minecraft.util.math.BlockPos |
getControllerPos()
Get the position of the drone's controller.
|
protected net.minecraft.util.SoundEvent |
getDeathSound() |
DroneDebugger |
getDebugger() |
net.minecraft.util.math.BlockPos |
getDeployPos()
Get the blockpos at which this drone was deployed (by player or dispenser).
|
int |
getDroneColor() |
net.minecraft.item.ItemStack |
getDroneHeldItem() |
DroneItemHandler |
getDroneItemHandler() |
net.minecraft.util.text.ITextComponent |
getDroneName() |
net.minecraft.util.math.vector.Vector3d |
getDronePos()
Get the drone's exact position.
|
float |
getDronePressure() |
double |
getDroneSpeed() |
net.minecraft.util.math.BlockPos |
getDugBlock() |
int |
getEmittingRedstone(net.minecraft.util.Direction side) |
net.minecraftforge.common.util.FakePlayer |
getFakePlayer()
Get the fake player object for the drone.
|
net.minecraftforge.fluids.IFluidTank |
getFluidTank()
Get the drone's fluid tank.
|
net.minecraft.util.ResourceLocation |
getHackableId()
IHackableEntity
|
int |
getHackTime(net.minecraft.entity.Entity entity,
net.minecraft.entity.player.PlayerEntity player)
Return the time it takes to hack this entity in ticks.
|
protected net.minecraft.util.SoundEvent |
getHurtSound(net.minecraft.util.DamageSource p_184601_1_) |
net.minecraftforge.items.IItemHandlerModifiable |
getInv()
Get the drone's inventory.
|
java.lang.String |
getLabel() |
int |
getLaserColor() |
LogisticsManager |
getLogisticsManager() |
Minigun |
getMinigun() |
ProgressingLine |
getOldTargetLine() |
net.minecraft.entity.player.PlayerEntity |
getOwner()
Retrieve the owning player of this drone; i.e.
|
net.minecraft.util.text.ITextComponent |
getOwnerName() |
java.util.UUID |
getOwnerUUID()
Get the UUID of the drone's owner.
|
IPathNavigator |
getPathNavigator()
Get the drone's path navigator object.
|
java.util.List<IProgWidget> |
getProgWidgets() |
net.minecraft.entity.ai.goal.Goal |
getRunningTargetAI() |
java.util.List<DroneAIManager.EntityAITaskEntry> |
getRunningTasks() |
int |
getSlotForAmmo()
Get the first slot which has any ammo in it.
|
protected float |
getSoundVolume() |
net.minecraft.entity.ai.goal.GoalSelector |
getTargetAI()
Get the drone's current collection of tasks.
|
net.minecraft.util.math.BlockPos |
getTargetedBlock() |
ProgressingLine |
getTargetLine() |
net.minecraftforge.items.IItemHandler |
getUpgradeHandler() |
int |
getUpgrades(EnumUpgrade upgrade)
Get the number of installed upgrades of the given item type.
|
net.minecraft.util.math.BlockPos |
getVariable(java.lang.String varName) |
boolean |
hasMinigun() |
boolean |
hurt(net.minecraft.util.DamageSource damageSource,
float damage) |
void |
incAttackCount() |
boolean |
isAccelerating() |
boolean |
isAIOverridden()
Has the drone's normal tasks been overridden by special circumstances? E.g.
|
boolean |
isBlockValidPathfindBlock(net.minecraft.util.math.BlockPos pos)
Is the given position valid for pathfinding purposes? i.e.
|
boolean |
isDescending() |
boolean |
isDroneStillValid() |
boolean |
isInvulnerableTo(net.minecraft.util.DamageSource source) |
boolean |
isProgramApplicable(ProgWidgetType<?> widgetType) |
boolean |
isTeleportRangeLimited() |
net.minecraft.util.ActionResultType |
mobInteract(net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.Hand hand) |
void |
onHackFinished(net.minecraft.entity.Entity entity,
net.minecraft.entity.player.PlayerEntity player)
Called when a player successfully hacks an entity; basically
getHackTime(Entity) ticks after the
hack was initiated. |
void |
onItemPickupEvent(net.minecraft.entity.item.ItemEntity curPickingUpEntity,
int stackSize)
Called when a drone is picking up an item.
|
void |
onSemiblockEvent(SemiblockEvent event) |
void |
onSyncedDataUpdated(net.minecraft.network.datasync.DataParameter<?> key) |
void |
onUpgradesChanged() |
boolean |
onWrenched(net.minecraft.world.World world,
net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.Direction side,
net.minecraft.util.Hand hand)
Called when a drone is right-clicked by a Pneumatic Wrench.
|
void |
overload(java.lang.String msgKey,
java.lang.Object... params) |
void |
playSound(net.minecraft.util.SoundEvent soundEvent,
net.minecraft.util.SoundCategory category,
float volume,
float pitch) |
static net.minecraft.entity.ai.attributes.AttributeModifierMap.MutableAttribute |
prepareAttributes() |
void |
printManometerMessage(net.minecraft.entity.player.PlayerEntity player,
java.util.List<net.minecraft.util.text.ITextComponent> curInfo)
This method is invoked by the Manometer when a player right-clicks a TE or Entity with this interface implemented.
|
void |
readAdditionalSaveData(net.minecraft.nbt.CompoundNBT tag) |
void |
readFromItemStack(net.minecraft.item.ItemStack droneStack)
Deserialize stored itemstack data when a drone item is deployed.
|
void |
readSpawnData(net.minecraft.network.PacketBuffer buffer) |
boolean |
removeWhenFarAway(double dist)
Determines if an entity can be despawned, used on idle far away entities
|
void |
resetAttackCount() |
void |
sendWireframeToClient(net.minecraft.util.math.BlockPos pos)
Send a position to the client to be rendered by the Pneumatic Helmet with Entity Tracker.
|
void |
setActiveProgram(IProgWidget widget) |
void |
setCarryingEntity(net.minecraft.entity.Entity entity)
Make the drone pick up the given entity.
|
void |
setDeployPos(net.minecraft.util.math.BlockPos deployPos) |
void |
setDroneSpeed(double droneSpeed) |
void |
setDugBlock(net.minecraft.util.math.BlockPos pos)
Mark the given block as being dug.
|
void |
setEmittingRedstone(net.minecraft.util.Direction side,
int value)
Make the drone emit redstone in the given direction from its current position.
|
void |
setLogisticsManager(LogisticsManager logisticsManager) |
void |
setName(net.minecraft.util.text.ITextComponent string)
Set the drone's custom name.
|
void |
setStandby(boolean standby) |
void |
setTarget(net.minecraft.entity.LivingEntity entity) |
void |
setVariable(java.lang.String varName,
net.minecraft.util.math.BlockPos pos) |
boolean |
shouldDropAsItem() |
boolean |
startRiding(net.minecraft.entity.Entity entity,
boolean force) |
void |
storeTrackerData(net.minecraft.item.ItemStack stack) |
void |
tick() |
void |
travel(net.minecraft.util.math.vector.Vector3d travelVec)
Moves the entity based on the specified heading.
|
void |
tryFireMinigun(net.minecraft.entity.LivingEntity target) |
void |
updateLabel()
Sets the label that was jumped to last, with a hierarchy in case of External Programs.
|
net.minecraft.world.World |
world()
Get the drone's world.
|
void |
writeSpawnData(net.minecraft.network.PacketBuffer buffer) |
getLaserOffsetYcheckSpawnRules, followLeashSpeed, getWalkTargetValue, getWalkTargetValue, isPathFinding, onLeashDistance, tickLeashaiStep, ate, baseTick, canAttack, canAttackType, canBeControlledByRider, canBeLeashed, canCutCorner, canFireProjectileWeapon, canHoldItem, canPickUpLoot, canReplaceCurrentItem, canReplaceEqualItem, canTakeItem, checkDespawn, checkMobSpawnRules, checkSpawnObstruction, convertTo, createBodyControl, createLootContext, createMobAttributes, customServerAiStep, dropCustomDeathLoot, dropFromLootTable, dropLeash, enchantSpawnedArmor, enchantSpawnedWeapon, equipItemIfPossible, finalizeSpawn, getAmbientSound, getAmbientSoundInterval, getArmorSlots, getDefaultLootTable, getEquipmentDropChance, getEquipmentForSlot, getEquipmentSlotForItem, getExperienceReward, getHandSlots, getHeadRotSpeed, getItemBySlot, getJumpControl, getLeashHolder, getLookControl, getLootTable, getMainArm, getMaxFallDistance, getMaxHeadXRot, getMaxHeadYRot, getMaxSpawnClusterSize, getMoveControl, getNavigation, getPathfindingMalus, getRestrictCenter, getRestrictRadius, getSensing, getTarget, handleEntityEvent, hasRestriction, interact, isAggressive, isControlledByLocalInstance, isEffectiveAi, isLeashed, isLeftHanded, isMaxGroupSizeReached, isNoAi, isPersistenceRequired, isSunBurnTick, isValidSlotForItem, isWithinRestriction, isWithinRestriction, jumpInLiquid, lookAt, onOffspringSpawnedFromEgg, pickUpItem, playAmbientSound, playHurtSound, populateDefaultEquipmentEnchantments, populateDefaultEquipmentSlots, registerGoals, removeAfterChangingDimensions, requiresCustomPersistence, restrictTo, sendDebugPackets, serverAiStep, setAggressive, setBaby, setCanPickUpLoot, setDelayedLeashHolderId, setDropChance, setGuaranteedDrop, setItemSlot, setItemSlotAndDropWhenKilled, setLeashedTo, setLeftHanded, setNoAi, setPathfindingMalus, setPersistenceRequired, setSlot, setSpeed, setXxa, setYya, setZza, shouldDespawnInPeaceful, shouldPassengersInheritMalus, spawnAnim, tickHeadTurn, updateControlFlags, wantsToPickUpactuallyHurt, addEffect, animateHurt, areAllEffectsAmbient, attackable, blockedByShield, blockUsingShield, brainProvider, broadcastBreakEvent, broadcastBreakEvent, calculateEntityAnimation, calculateFallDamage, canAttack, canBeAffected, canSee, canSpawnSoulSpeedParticle, canStandOnFluid, causeFallDamage, checkAutoSpinAttack, checkFallDamage, clearSleepingPos, completeUsingItem, createLivingAttributes, createWitherRose, curePotionEffects, doAutoAttackOnTouch, doPush, dropAllDeathLoot, dropExperience, eat, forceAddEffect, getAbsorptionAmount, getActiveEffects, getActiveEffectsMap, getArmorCoverPercentage, getArrowCount, getAttackAnim, getAttribute, getAttributeBaseValue, getAttributes, getAttributeValue, getBedOrientation, getBlockSpeedFactor, getBoundingBoxForCulling, getBrain, getCombatTracker, getDamageAfterArmorAbsorb, getDamageAfterMagicAbsorb, getDimensions, getDismountPoses, getDrinkingSound, getEatingSound, getEffect, getEyeHeight, getFallDamageSound, getFallFlyingTicks, getFeetBlockState, getFluidFallingAdjustedMovement, getHealth, getItemInHand, getJumpPower, getKillCredit, getLastClimbablePos, getLastDamageSource, getLastHurtByMob, getLastHurtByMobTimestamp, getLastHurtMob, getLastHurtMobTimestamp, getLocalBoundsForPose, getMainHandItem, getMaxHealth, getMobType, getNoActionTime, getOffhandItem, getProjectile, getRandom, getRelativePortalPosition, getScale, getSleepingPos, getSpeed, getStandingEyeHeight, getStingerCount, getSwimAmount, getTicksUsingItem, getUsedItemHand, getUseItem, getUseItemRemainingTicks, getViewYRot, getVisibilityPercent, getVoicePitch, getWaterSlowDown, getYHeadRot, goDownInWater, handleRelativeFrictionAndCalculateMovement, hasEffect, hasItemInSlot, heal, hurtArmor, hurtCurrentlyUsedShield, increaseAirSupply, invalidateCaps, isAffectedByFluids, isAffectedByPotions, isAlive, isAlwaysExperienceDropper, isAutoSpinAttack, isBaby, isBlocking, isDeadOrDying, isFallFlying, isHolding, isHolding, isImmobile, isInvertedHealAndHarm, isInWall, isPickable, isPushable, isSensitiveToWater, isSleeping, isSuppressingSlidingDownLadder, isUsingItem, isVisuallySwimming, jumpFromGround, kill, knockback, lerpHeadTo, lerpTo, lookAt, makeBrain, markHurt, onChangedBlock, onClimbable, onEffectAdded, onEffectRemoved, onEffectUpdated, onEnterCombat, onItemPickup, onLeaveCombat, onSoulSpeedBlock, outOfWorld, playBlockFallSound, playEquipSound, push, pushEntities, randomTeleport, releaseUsingItem, removeAllEffects, removeEffect, removeEffectNoUpdate, removeEffectParticles, removeSoulSpeed, resetForwardDirectionOfRelativePortalPosition, rideableUnderWater, rideTick, setAbsorptionAmount, setArrowCount, setHealth, setItemInHand, setJumping, setLastHurtByMob, setLastHurtByPlayer, setLastHurtMob, setLivingEntityFlag, setNoActionTime, setOnGround, setRecordPlayingNearby, setSleepingPos, setSprinting, setStingerCount, setYBodyRot, setYHeadRot, shouldDropExperience, shouldDropLoot, shouldRemoveSoulSpeed, shouldRiderFaceForward, shouldShowName, spawnSoulSpeedParticle, startAutoSpinAttack, startSleeping, startUsingItem, stopRiding, stopSleeping, stopUsingItem, swing, swing, take, tickDeath, tickEffects, triggerItemUseEffects, tryAddSoulSpeed, updateEffectVisibility, updateInvisibilityStatus, updateSwingTimeabsMoveTo, absMoveTo, acceptsFailure, acceptsSuccess, addPassenger, addTag, awardKillScore, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canAddPassenger, canBeCollidedWith, canChangeDimensions, canCollideWith, canEnterPose, canRide, canSpawnSprintParticle, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, changeDimension, checkAndResetForcedChunkAdditionFlag, checkAndResetUpdateChunkPos, checkInsideBlocks, clearFire, closerThan, collideBoundingBox, collideBoundingBoxHeuristically, collideBoundingBoxLegacy, copyPosition, createCommandSourceStack, createHoverEvent, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, doEnchantDamageEffects, doWaterSplashEffect, ejectPassengers, equals, fillCrashReportCategory, findDimensionEntryPoint, fireImmune, getAirSupply, getAllSlots, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockStateOn, getBoundingBox, getBoundingBoxForPose, getBrightness, getCollisionHorizontalEscapeVector, getCommandSenderWorld, getControllingPassenger, getCustomName, getDeltaMovement, getDimensionChangingDelay, getDirection, getDismountLocationForPassenger, getDisplayName, getEncodeId, getEntityData, getExitPortal, getEyeHeight, getEyeHeight, getEyeHeightAccess, getEyePosition, getEyeY, getFireImmuneTicks, getFluidHeight, getFluidJumpThreshold, getForward, getHorizontalDistanceSqr, getId, getIndirectPassengers, getLeashOffset, getLightProbePosition, getLookAngle, getMaxAirSupply, getMotionDirection, getMyRidingOffset, getName, getOnPos, getPacketCoordinates, getPassengers, getPassengersRidingOffset, getPermissionLevel, getPersistentData, getPickRadius, getPistonPushReaction, getPortalWaitTime, getPose, getPosition, getRandomX, getRandomY, getRandomZ, getRemainingFireTicks, getRootVehicle, getRopeHoldPosition, getRotationVector, getScoreboardName, getSelfAndPassengers, getServer, getSharedFlag, getSoundSource, getStringUUID, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTags, getTeam, getTeamColor, getType, getTypeName, getUpVector, getUUID, getVehicle, getViewScale, getViewVector, getViewXRot, getX, getX, getY, getY, getZ, getZ, handleInsidePortal, handleNetherPortal, hasCustomName, hashCode, hasIndirectPassenger, hasOnePlayerPassenger, hasPassenger, hasPassenger, hasPermissions, ignoreExplosion, interactAt, is, isAddedToWorld, isAlliedTo, isAlliedTo, isAttackable, isColliding, isCrouching, isCustomNameVisible, isDiscrete, isEyeInFluid, isFree, isGlowing, isIgnoringBlockTriggers, isInLava, isInvisible, isInvisibleTo, isInvulnerable, isInWater, isInWaterOrBubble, isInWaterOrRain, isInWaterRainOrBubble, isMovementNoisy, isNoGravity, isOnFire, isOnGround, isOnPortalCooldown, isPassenger, isPassengerOfSameVehicle, isPushedByFluid, isShiftKeyDown, isSilent, isSpectator, isSprinting, isSteppingCarefully, isSuppressingBounce, isSwimming, isUnderWater, isVehicle, isVisuallyCrawling, killed, lavaHurt, lerpMotion, limitPistonMovement, load, makeFlySound, makeStuckInBlock, maybeBackOffFromEdge, mirror, move, moveRelative, moveTo, moveTo, moveTo, moveTo, moveTowardsClosestSpace, newDoubleList, newFloatList, nextStep, onAboveBubbleCol, onAddedToWorld, onInsideBlock, onInsideBubbleColumn, onlyOpCanSetNbt, onPassengerTurned, onRemovedFromWorld, pick, playerTouch, playFlySound, playSound, playStepSound, playSwimSound, position, positionRider, processPortalCooldown, push, reapplyPosition, refreshDimensions, remove, remove, removePassenger, removeTag, removeVehicle, repositionEntityAfterLoad, resetPos, restoreFrom, revive, rotate, save, saveAsPassenger, saveWithoutId, sendMessage, setAirSupply, setBoundingBox, setCustomName, setCustomNameVisible, setDeltaMovement, setDeltaMovement, setGlowing, setId, setInvisible, setInvulnerable, setLevel, setLocationFromBoundingbox, setNoGravity, setPacketCoordinates, setPacketCoordinates, setPortalCooldown, setPos, setPosAndOldPos, setPose, setPosRaw, setRemainingFireTicks, setRot, setSecondsOnFire, setSharedFlag, setShiftKeyDown, setSilent, setSwimming, setUUID, setViewScale, shouldBlockExplode, shouldInformAdmins, shouldRender, shouldRenderAtSqrDistance, showVehicleHealth, skipAttackInteraction, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnSprintParticle, startRiding, startSeenByPlayer, stopSeenByPlayer, teleportTo, teleportToWithTicket, thunderHit, toString, turn, unRide, updateFluidHeightAndDoFluidPushing, updateInWaterStateAndDoFluidPushing, updateSwimmingareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, reviveCaps, serializeCapsclone, finalize, getClass, notify, notifyAll, wait, wait, waitforBlockgetActiveAIManager, getActiveWidget, onVariableChangedpublic static final java.lang.String NBT_DRONE_COLOR
public java.util.List<IProgWidget> progWidgets
public net.minecraft.util.text.ITextComponent ownerName
public EntityDrone(net.minecraft.entity.EntityType<? extends EntityDrone> type, net.minecraft.world.World world)
public EntityDrone(net.minecraft.world.World world,
net.minecraft.entity.player.PlayerEntity player)
public void onSemiblockEvent(SemiblockEvent event)
protected net.minecraft.pathfinding.PathNavigator createNavigation(net.minecraft.world.World worldIn)
createNavigation in class net.minecraft.entity.MobEntitypublic void readFromItemStack(net.minecraft.item.ItemStack droneStack)
droneStack - the drone itemstackprotected void defineSynchedData()
defineSynchedData in class net.minecraft.entity.MobEntitypublic static net.minecraft.entity.ai.attributes.AttributeModifierMap.MutableAttribute prepareAttributes()
@Nonnull
public <T> net.minecraftforge.common.util.LazyOptional<T> getCapability(@Nonnull
net.minecraftforge.common.capabilities.Capability<T> capability,
net.minecraft.util.Direction facing)
getCapability in interface net.minecraftforge.common.capabilities.ICapabilityProvidergetCapability in class net.minecraft.entity.LivingEntitypublic net.minecraft.network.IPacket<?> getAddEntityPacket()
getAddEntityPacket in class net.minecraft.entity.LivingEntitypublic void writeSpawnData(net.minecraft.network.PacketBuffer buffer)
writeSpawnData in interface net.minecraftforge.fml.common.registry.IEntityAdditionalSpawnDatapublic void readSpawnData(net.minecraft.network.PacketBuffer buffer)
readSpawnData in interface net.minecraftforge.fml.common.registry.IEntityAdditionalSpawnDatapublic boolean removeWhenFarAway(double dist)
removeWhenFarAway in class net.minecraft.entity.MobEntityprotected float getSoundVolume()
getSoundVolume in class net.minecraft.entity.LivingEntity@Nullable protected net.minecraft.util.SoundEvent getHurtSound(net.minecraft.util.DamageSource p_184601_1_)
getHurtSound in class net.minecraft.entity.LivingEntity@Nullable protected net.minecraft.util.SoundEvent getDeathSound()
getDeathSound in class net.minecraft.entity.LivingEntitypublic void tick()
tick in class net.minecraft.entity.MobEntitypublic boolean isDescending()
isDescending in class net.minecraft.entity.Entitypublic boolean canBreatheUnderwater()
canBreatheUnderwater in class net.minecraft.entity.LivingEntitypublic net.minecraft.util.math.BlockPos getTargetedBlock()
getTargetedBlock in class EntityDroneBasepublic int getLaserColor()
getLaserColor in class EntityDroneBasepublic net.minecraft.util.math.BlockPos getDugBlock()
getDugBlock in class EntityDroneBasepublic net.minecraft.item.ItemStack getDroneHeldItem()
getDroneHeldItem in class EntityDroneBasepublic void setDugBlock(net.minecraft.util.math.BlockPos pos)
IDronesetDugBlock in interface IDronepos - a block positionpublic java.util.List<DroneAIManager.EntityAITaskEntry> getRunningTasks()
public net.minecraft.entity.ai.goal.Goal getRunningTargetAI()
public void setVariable(java.lang.String varName,
net.minecraft.util.math.BlockPos pos)
public net.minecraft.util.math.BlockPos getVariable(java.lang.String varName)
public int getActiveWidgetIndex()
getActiveWidgetIndex in interface IDroneBasepublic void setActiveProgram(IProgWidget widget)
setActiveProgram in interface IDroneBasepublic boolean isAccelerating()
isAccelerating in class EntityDroneBasepublic int getDroneColor()
getDroneColor in class EntityDroneBasepublic boolean hasMinigun()
public int getAmmoColor()
public net.minecraft.util.math.BlockPos getDeployPos()
IDronegetDeployPos in interface IDronepublic void setDeployPos(net.minecraft.util.math.BlockPos deployPos)
protected int decreaseAirSupply(int par1)
decreaseAirSupply in class net.minecraft.entity.LivingEntitypublic void travel(net.minecraft.util.math.vector.Vector3d travelVec)
travel in class net.minecraft.entity.LivingEntitypublic ProgressingLine getTargetLine()
public ProgressingLine getOldTargetLine()
public net.minecraft.util.ActionResultType mobInteract(net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.Hand hand)
mobInteract in class net.minecraft.entity.MobEntitypublic boolean shouldDropAsItem()
public boolean onWrenched(net.minecraft.world.World world,
net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.Direction side,
net.minecraft.util.Hand hand)
onWrenched in interface IPneumaticWrenchable@Nullable
public net.minecraft.entity.Entity changeDimension(net.minecraft.world.server.ServerWorld p_241206_1_,
net.minecraftforge.common.util.ITeleporter teleporter)
changeDimension in class net.minecraft.entity.Entityprotected void dropEquipment()
dropEquipment in class net.minecraft.entity.LivingEntitypublic void die(net.minecraft.util.DamageSource damageSource)
die in class net.minecraft.entity.LivingEntitypublic void onSyncedDataUpdated(net.minecraft.network.datasync.DataParameter<?> key)
onSyncedDataUpdated in class net.minecraft.entity.LivingEntitypublic void setTarget(net.minecraft.entity.LivingEntity entity)
setTarget in class net.minecraft.entity.MobEntitypublic boolean startRiding(net.minecraft.entity.Entity entity,
boolean force)
startRiding in class net.minecraft.entity.MobEntityprotected BasicAirHandler getAirHandler()
public void printManometerMessage(net.minecraft.entity.player.PlayerEntity player,
java.util.List<net.minecraft.util.text.ITextComponent> curInfo)
IManoMeasurableprintManometerMessage in interface IManoMeasurableplayer - player who is right-clicking the measurable TE, and therefore needs to get the messagecurInfo - list you can append info to. If you don't append any info no air will be used.public void addAdditionalSaveData(net.minecraft.nbt.CompoundNBT tag)
addAdditionalSaveData in class net.minecraft.entity.MobEntitypublic void readAdditionalSaveData(net.minecraft.nbt.CompoundNBT tag)
readAdditionalSaveData in class net.minecraft.entity.MobEntitypublic net.minecraft.util.text.ITextComponent getOwnerName()
getOwnerName in class EntityDroneBasepublic java.util.UUID getOwnerUUID()
IDronegetOwnerUUID in interface IDronepublic int getUpgrades(EnumUpgrade upgrade)
IDronegetUpgrades in interface IDronepublic net.minecraftforge.common.util.FakePlayer getFakePlayer()
IDronegetFakePlayer in interface IDronepublic Minigun getMinigun()
public boolean doHurtTarget(net.minecraft.entity.Entity entity)
doHurtTarget in class net.minecraft.entity.MobEntitypublic int getArmorValue()
getArmorValue in class net.minecraft.entity.LivingEntitypublic boolean hurt(net.minecraft.util.DamageSource damageSource,
float damage)
hurt in class net.minecraft.entity.LivingEntitypublic boolean isInvulnerableTo(net.minecraft.util.DamageSource source)
isInvulnerableTo in class net.minecraft.entity.Entitypublic net.minecraftforge.items.IItemHandlerModifiable getInv()
IDroneCapabilityItemHandler.ITEM_HANDLER_CAPABILITY capability.public int getEmittingRedstone(net.minecraft.util.Direction side)
public void setEmittingRedstone(net.minecraft.util.Direction side,
int value)
IDronesetEmittingRedstone in interface IDroneside - the direction to emitvalue - the redstone levelpublic boolean isBlockValidPathfindBlock(net.minecraft.util.math.BlockPos pos)
IDrone
Custom pathfinding functionality may be added via IDroneRegistry.addPathfindableBlock(Block, IPathfindHandler).
isBlockValidPathfindBlock in interface IDronepos - a block positionpublic void sendWireframeToClient(net.minecraft.util.math.BlockPos pos)
IDronesendWireframeToClient in interface IDronepos - a block positionpublic net.minecraft.util.ResourceLocation getHackableId()
getHackableId in interface IHackableEntitypublic boolean canHack(net.minecraft.entity.Entity entity,
net.minecraft.entity.player.PlayerEntity player)
IHackableEntitycanHack in interface IHackableEntityentity - the potential hacking targetplayer - the player who is looking at the entitypublic void addHackInfo(net.minecraft.entity.Entity entity,
java.util.List<net.minecraft.util.text.ITextComponent> curInfo,
net.minecraft.entity.player.PlayerEntity player)
IHackableEntityaddHackInfo in interface IHackableEntityentity - the potential hack targetcurInfo - a text component list to append info toplayer - the player who is looking at the entitypublic void addPostHackInfo(net.minecraft.entity.Entity entity,
java.util.List<net.minecraft.util.text.ITextComponent> curInfo,
net.minecraft.entity.player.PlayerEntity player)
IHackableEntityaddPostHackInfo in interface IHackableEntityentity - the hacked entitycurInfo - a text component list to append info toplayer - the player who has hacked the entitypublic int getHackTime(net.minecraft.entity.Entity entity,
net.minecraft.entity.player.PlayerEntity player)
IHackableEntitygetHackTime in interface IHackableEntityentity - the potential hack targetplayer - the player who is looking at the entitypublic void onHackFinished(net.minecraft.entity.Entity entity,
net.minecraft.entity.player.PlayerEntity player)
IHackableEntitygetHackTime(Entity) ticks after the
hack was initiated.onHackFinished in interface IHackableEntityentity - the hacked entityplayer - the player who has hacked the entitypublic boolean afterHackTick(net.minecraft.entity.Entity entity)
IHackableEntityafterHackTick in interface IHackableEntityentity - the hacked entitypublic net.minecraftforge.fluids.IFluidTank getFluidTank()
IDroneCapabilityFluidHandler.FLUID_HANDLER_CAPABILITY
capability.getFluidTank in interface IDronepublic net.minecraft.entity.player.PlayerEntity getOwner()
IDronepublic void setStandby(boolean standby)
public net.minecraft.world.World world()
IDronepublic net.minecraft.util.math.vector.Vector3d getDronePos()
IDronegetDronePos in interface IDronepublic net.minecraft.util.math.BlockPos getControllerPos()
IDronegetControllerPos in interface IDronepublic void dropItem(net.minecraft.item.ItemStack stack)
IDronepublic java.util.List<IProgWidget> getProgWidgets()
getProgWidgets in interface IDroneBasepublic net.minecraft.entity.ai.goal.GoalSelector getTargetAI()
IDronegetTargetAI in interface IDronepublic boolean isProgramApplicable(ProgWidgetType<?> widgetType)
isProgramApplicable in interface IDroneBasepublic void setName(net.minecraft.util.text.ITextComponent string)
IDronepublic void setCarryingEntity(net.minecraft.entity.Entity entity)
IDronesetCarryingEntity in interface IDroneentity - an entity to pick up, or null to drop any currently-held entitypublic java.util.List<net.minecraft.entity.Entity> getCarryingEntities()
IDronegetCarryingEntities in interface IDronepublic boolean isAIOverridden()
IDroneisAIOverridden in interface IDronepublic void onItemPickupEvent(net.minecraft.entity.item.ItemEntity curPickingUpEntity,
int stackSize)
IDroneonItemPickupEvent in interface IDronecurPickingUpEntity - the item entitystackSize - the size of the itemstack in the item entitypublic IPathNavigator getPathNavigator()
IDronegetPathNavigator in interface IDronepublic void tryFireMinigun(net.minecraft.entity.LivingEntity target)
public int getSlotForAmmo()
public void overload(java.lang.String msgKey,
java.lang.Object... params)
overload in interface IDroneBasepublic DroneAIManager getAIManager()
getAIManager in interface IDroneBasepublic LogisticsManager getLogisticsManager()
getLogisticsManager in interface IDroneBasepublic void setLogisticsManager(LogisticsManager logisticsManager)
setLogisticsManager in interface IDroneBasepublic void playSound(net.minecraft.util.SoundEvent soundEvent,
net.minecraft.util.SoundCategory category,
float volume,
float pitch)
playSound in interface IDroneBasepublic void addAirToDrone(int air)
addAirToDrone in interface IDroneBasepublic void updateLabel()
IDroneBaseupdateLabel in interface IDroneBasepublic java.lang.String getLabel()
getLabel in interface IDroneBasegetLabel in class EntityDroneBasepublic boolean isTeleportRangeLimited()
isTeleportRangeLimited in class EntityDroneBasepublic net.minecraft.util.text.ITextComponent getDroneName()
getDroneName in interface IDroneBasepublic DroneDebugger getDebugger()
getDebugger in interface IDroneBasepublic void storeTrackerData(net.minecraft.item.ItemStack stack)
storeTrackerData in interface IDroneBasepublic net.minecraftforge.items.IItemHandler getUpgradeHandler()
getUpgradeHandler in interface IUpgradeHolderpublic void onUpgradesChanged()
onUpgradesChanged in interface IUpgradeHolderpublic boolean isDroneStillValid()
isDroneStillValid in interface IDroneBasepublic boolean canMoveIntoFluid(net.minecraft.fluid.Fluid fluid)
canMoveIntoFluid in interface IDroneBasepublic DroneItemHandler getDroneItemHandler()
getDroneItemHandler in interface IDroneBasepublic boolean addProgram(net.minecraft.util.math.BlockPos clickPos,
net.minecraft.util.Direction facing,
net.minecraft.util.math.BlockPos placePos,
net.minecraft.item.ItemStack droneStack,
java.util.List<IProgWidget> progWidgets)
clickPos - block the drone item is clicked againstfacing - side of the clicked blockplacePos - blockpos the drone will appear indroneStack - the drone itemstackprogWidgets - add the program to this list, ideally using DroneProgramBuilderpublic void incAttackCount()
public int getAttackCount()
public void resetAttackCount()
resetAttackCount in interface IDroneBasepublic float getDronePressure()
getDronePressure in interface IDroneBasepublic void setDroneSpeed(double droneSpeed)
public double getDroneSpeed()