Package net.minecraft.entity.projectile
Class TridentEntity
- java.lang.Object
-
- net.minecraftforge.common.capabilities.CapabilityProvider<Entity>
-
- net.minecraft.entity.Entity
-
- net.minecraft.entity.projectile.ProjectileEntity
-
- net.minecraft.entity.projectile.AbstractArrowEntity
-
- net.minecraft.entity.projectile.TridentEntity
-
- All Implemented Interfaces:
ICommandSource
,INameable
,ICapabilityProvider
,ICapabilitySerializable<CompoundNBT>
,IForgeEntity
,INBTSerializable<CompoundNBT>
public class TridentEntity extends AbstractArrowEntity
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraft.entity.projectile.AbstractArrowEntity
AbstractArrowEntity.PickupStatus
-
Nested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.IMoveCallback
-
-
Field Summary
Fields Modifier and Type Field Description int
clientSideReturnTridentTickCount
private boolean
dealtDamage
private static DataParameter<java.lang.Boolean>
ID_FOIL
private static DataParameter<java.lang.Byte>
ID_LOYALTY
private ItemStack
tridentItem
-
Fields inherited from class net.minecraft.entity.projectile.AbstractArrowEntity
inGround, inGroundTime, pickup, shakeTime
-
Fields inherited from class net.minecraft.entity.Entity
blocksBuilding, boardingCooldown, DATA_POSE, DATA_SHARED_FLAGS_ID, ENTITY_COUNTER, 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
-
Fields inherited from interface net.minecraft.command.ICommandSource
NULL
-
-
Constructor Summary
Constructors Constructor Description TridentEntity(EntityType<? extends TridentEntity> p_i50148_1_, World p_i50148_2_)
TridentEntity(World p_i48791_1_, double p_i48791_2_, double p_i48791_4_, double p_i48791_6_)
TridentEntity(World p_i48790_1_, LivingEntity p_i48790_2_, ItemStack p_i48790_3_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAdditionalSaveData(CompoundNBT p_213281_1_)
protected void
defineSynchedData()
protected EntityRayTraceResult
findHitEntity(Vector3d p_213866_1_, Vector3d p_213866_2_)
protected SoundEvent
getDefaultHitGroundSoundEvent()
protected ItemStack
getPickupItem()
protected float
getWaterInertia()
private boolean
isAcceptibleReturnOwner()
boolean
isFoil()
protected void
onHitEntity(EntityRayTraceResult p_213868_1_)
void
playerTouch(PlayerEntity p_70100_1_)
void
readAdditionalSaveData(CompoundNBT p_70037_1_)
boolean
shouldRender(double p_145770_1_, double p_145770_3_, double p_145770_5_)
void
tick()
void
tickDespawn()
-
Methods inherited from class net.minecraft.entity.projectile.AbstractArrowEntity
canHitEntity, doPostHurtEffects, getAddEntityPacket, getBaseDamage, getEyeHeight, getHitGroundSoundEvent, getPierceLevel, isAttackable, isCritArrow, isMovementNoisy, isNoPhysics, lerpMotion, lerpTo, move, onHitBlock, setBaseDamage, setCritArrow, setEnchantmentEffectsFromEntity, setKnockback, setNoPhysics, setOwner, setPierceLevel, setShotFromCrossbow, setSoundEvent, shoot, shotFromCrossbow, shouldRenderAtSqrDistance
-
Methods inherited from class net.minecraft.entity.projectile.ProjectileEntity
getOwner, lerpRotation, onHit, shootFromRotation, updateRotation
-
Methods inherited from class net.minecraft.entity.Entity
absMoveTo, absMoveTo, acceptsFailure, acceptsSuccess, addPassenger, addTag, animateHurt, awardKillScore, baseTick, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canAddPassenger, canBeCollidedWith, canChangeDimensions, canCollideWith, canEnterPose, canRide, canSpawnSprintParticle, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, causeFallDamage, changeDimension, changeDimension, checkAndResetForcedChunkAdditionFlag, checkAndResetUpdateChunkPos, checkDespawn, checkFallDamage, checkInsideBlocks, clearFire, closerThan, collideBoundingBox, collideBoundingBoxHeuristically, collideBoundingBoxLegacy, copyPosition, createCommandSourceStack, createHoverEvent, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, doEnchantDamageEffects, doWaterSplashEffect, ejectPassengers, equals, fillCrashReportCategory, findDimensionEntryPoint, fireImmune, getAirSupply, getAllSlots, getArmorSlots, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockSpeedFactor, getBlockStateOn, getBoundingBox, getBoundingBoxForCulling, getBoundingBoxForPose, getBrightness, getCollisionHorizontalEscapeVector, getCommandSenderWorld, getControllingPassenger, getCustomName, getDeltaMovement, getDimensionChangingDelay, getDimensions, getDirection, getDismountLocationForPassenger, getDisplayName, getEncodeId, getEntityData, getExitPortal, getEyeHeight, getEyeHeight, getEyeHeightAccess, getEyePosition, getEyeY, getFireImmuneTicks, getFluidHeight, getFluidJumpThreshold, getForward, getHandSlots, getHorizontalDistanceSqr, getId, getIndirectPassengers, getLeashOffset, getLightProbePosition, getLookAngle, getMaxAirSupply, getMaxFallDistance, getMotionDirection, getMyRidingOffset, getName, getOnPos, getPacketCoordinates, getPassengers, getPassengersRidingOffset, getPermissionLevel, getPersistentData, getPickRadius, getPistonPushReaction, getPortalWaitTime, getPose, getPosition, getRandomX, getRandomY, getRandomZ, getRelativePortalPosition, getRemainingFireTicks, getRootVehicle, getRopeHoldPosition, getRotationVector, getScoreboardName, getSelfAndPassengers, getServer, getSharedFlag, getSoundSource, getStringUUID, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTags, getTeam, getTeamColor, getType, getTypeName, getUpVector, getUUID, getVehicle, getViewScale, getViewVector, getViewXRot, getViewYRot, getX, getX, getY, getY, getYHeadRot, getZ, getZ, handleEntityEvent, handleInsidePortal, handleNetherPortal, hasCustomName, hashCode, hasIndirectPassenger, hasOnePlayerPassenger, hasPassenger, hasPassenger, hasPermissions, hurt, ignoreExplosion, interact, interactAt, is, isAddedToWorld, isAlive, isAlliedTo, isAlliedTo, isColliding, isControlledByLocalInstance, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEyeInFluid, isFree, isGlowing, isIgnoringBlockTriggers, isInLava, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isInWall, isInWater, isInWaterOrBubble, isInWaterOrRain, isInWaterRainOrBubble, isNoGravity, isOnFire, isOnGround, isOnPortalCooldown, isPassenger, isPassengerOfSameVehicle, isPickable, isPushable, isPushedByFluid, isShiftKeyDown, isSilent, isSpectator, isSprinting, isSteppingCarefully, isSuppressingBounce, isSwimming, isUnderWater, isVehicle, isVisuallyCrawling, isVisuallySwimming, kill, killed, lavaHurt, lerpHeadTo, limitPistonMovement, load, lookAt, makeFlySound, makeStuckInBlock, markHurt, maybeBackOffFromEdge, mirror, moveRelative, moveTo, moveTo, moveTo, moveTo, moveTowardsClosestSpace, newDoubleList, newFloatList, nextStep, onAboveBubbleCol, onAddedToWorld, onInsideBlock, onInsideBubbleColumn, onlyOpCanSetNbt, onPassengerTurned, onRemovedFromWorld, onSyncedDataUpdated, outOfWorld, pick, playFlySound, playSound, playStepSound, playSwimSound, position, positionRider, processPortalCooldown, push, push, reapplyPosition, refreshDimensions, remove, remove, removeAfterChangingDimensions, removePassenger, removeTag, removeVehicle, repositionEntityAfterLoad, resetPos, restoreFrom, revive, rideableUnderWater, rideTick, rotate, save, saveAsPassenger, saveWithoutId, sendMessage, setAirSupply, setBoundingBox, setCustomName, setCustomNameVisible, setDeltaMovement, setDeltaMovement, setGlowing, setId, setInvisible, setInvulnerable, setItemSlot, setLevel, setLocationFromBoundingbox, setNoGravity, setOnGround, setPacketCoordinates, setPacketCoordinates, setPortalCooldown, setPos, setPosAndOldPos, setPose, setPosRaw, setRemainingFireTicks, setRot, setSecondsOnFire, setSharedFlag, setShiftKeyDown, setSilent, setSlot, setSprinting, setSwimming, setUUID, setViewScale, setYBodyRot, setYHeadRot, shouldBlockExplode, shouldInformAdmins, shouldShowName, showVehicleHealth, skipAttackInteraction, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnSprintParticle, startRiding, startRiding, startSeenByPlayer, stopRiding, stopSeenByPlayer, teleportTo, teleportToWithTicket, thunderHit, toString, turn, unRide, updateFluidHeightAndDoFluidPushing, updateInWaterStateAndDoFluidPushing, updateSwimming
-
Methods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability, getCapability
-
Methods inherited from interface net.minecraftforge.common.extensions.IForgeEntity
canBeRiddenInWater, canRiderInteract, deserializeNBT, getClassification, getDimensionsForge, getEntity, getEyeHeightForge, getParts, getPickedResult, isMultipartEntity, serializeNBT, shouldRiderSit
-
-
-
-
Field Detail
-
ID_LOYALTY
private static final DataParameter<java.lang.Byte> ID_LOYALTY
-
ID_FOIL
private static final DataParameter<java.lang.Boolean> ID_FOIL
-
tridentItem
private ItemStack tridentItem
-
dealtDamage
private boolean dealtDamage
-
clientSideReturnTridentTickCount
public int clientSideReturnTridentTickCount
-
-
Constructor Detail
-
TridentEntity
public TridentEntity(EntityType<? extends TridentEntity> p_i50148_1_, World p_i50148_2_)
-
TridentEntity
public TridentEntity(World p_i48790_1_, LivingEntity p_i48790_2_, ItemStack p_i48790_3_)
-
TridentEntity
public TridentEntity(World p_i48791_1_, double p_i48791_2_, double p_i48791_4_, double p_i48791_6_)
-
-
Method Detail
-
defineSynchedData
protected void defineSynchedData()
- Overrides:
defineSynchedData
in classAbstractArrowEntity
-
tick
public void tick()
- Overrides:
tick
in classAbstractArrowEntity
-
isAcceptibleReturnOwner
private boolean isAcceptibleReturnOwner()
-
getPickupItem
protected ItemStack getPickupItem()
- Specified by:
getPickupItem
in classAbstractArrowEntity
-
isFoil
public boolean isFoil()
-
findHitEntity
@Nullable protected EntityRayTraceResult findHitEntity(Vector3d p_213866_1_, Vector3d p_213866_2_)
- Overrides:
findHitEntity
in classAbstractArrowEntity
-
onHitEntity
protected void onHitEntity(EntityRayTraceResult p_213868_1_)
- Overrides:
onHitEntity
in classAbstractArrowEntity
-
getDefaultHitGroundSoundEvent
protected SoundEvent getDefaultHitGroundSoundEvent()
- Overrides:
getDefaultHitGroundSoundEvent
in classAbstractArrowEntity
-
playerTouch
public void playerTouch(PlayerEntity p_70100_1_)
- Overrides:
playerTouch
in classAbstractArrowEntity
-
readAdditionalSaveData
public void readAdditionalSaveData(CompoundNBT p_70037_1_)
- Overrides:
readAdditionalSaveData
in classAbstractArrowEntity
-
addAdditionalSaveData
public void addAdditionalSaveData(CompoundNBT p_213281_1_)
- Overrides:
addAdditionalSaveData
in classAbstractArrowEntity
-
tickDespawn
public void tickDespawn()
- Overrides:
tickDespawn
in classAbstractArrowEntity
-
getWaterInertia
protected float getWaterInertia()
- Overrides:
getWaterInertia
in classAbstractArrowEntity
-
shouldRender
public boolean shouldRender(double p_145770_1_, double p_145770_3_, double p_145770_5_)
- Overrides:
shouldRender
in classEntity
-
-