public class TridentEntity extends PersistentProjectileEntity
PersistentProjectileEntity.PickupPermission
Entity.PositionUpdater
Modifier and Type | Field and Description |
---|---|
private boolean |
dealtDamage |
private static TrackedData<Boolean> |
ENCHANTED |
private static TrackedData<Byte> |
LOYALTY |
int |
returnTimer |
private ItemStack |
tridentStack |
inGround, inGroundTime, pickupType, shake
age, chunkX, chunkY, chunkZ, dataTracker, distanceTraveled, fallDistance, field_25599, firstUpdate, FLAGS, fluidHeight, glowing, horizontalCollision, horizontalSpeed, ignoreCameraFrustum, inanimate, inNetherPortal, lastNetherPortalPosition, lastRenderX, lastRenderY, lastRenderZ, LOGGER, movementMultiplier, netherPortalTime, noClip, onGround, pitch, POSE, prevHorizontalSpeed, prevPitch, prevX, prevY, prevYaw, prevZ, pushSpeedReduction, random, removed, ridingCooldown, stepHeight, submergedInWater, teleporting, timeUntilRegen, touchingWater, updateNeeded, uuid, uuidString, velocityDirty, velocityModified, verticalCollision, world, yaw
DUMMY
Constructor and Description |
---|
TridentEntity(EntityType<? extends TridentEntity> type,
World world) |
TridentEntity(World world,
double x,
double y,
double z) |
TridentEntity(World world,
LivingEntity owner,
ItemStack stack) |
Modifier and Type | Method and Description |
---|---|
void |
age() |
protected ItemStack |
asItemStack() |
protected float |
getDragInWater() |
protected EntityHitResult |
getEntityCollision(Vec3d currentPosition,
Vec3d nextPosition) |
protected SoundEvent |
getHitSound() |
protected void |
initDataTracker() |
boolean |
isEnchanted() |
private boolean |
isOwnerAlive() |
protected void |
onEntityHit(EntityHitResult entityHitResult) |
void |
onPlayerCollision(PlayerEntity player) |
void |
readCustomDataFromTag(CompoundTag tag) |
boolean |
shouldRender(double cameraX,
double cameraY,
double cameraZ) |
void |
tick() |
void |
writeCustomDataToTag(CompoundTag tag) |
applyEnchantmentEffects, canClimb, createSpawnPacket, getDamage, getEyeHeight, getPierceLevel, getSound, isAttackable, isCritical, isNoClip, isShotFromCrossbow, method_26958, move, onBlockHit, onHit, setCritical, setDamage, setNoClip, setOwner, setPierceLevel, setPunch, setShotFromCrossbow, setSound, setVelocity, setVelocityClient, shouldRender, updateTrackedPositionAndAngles
getOwner, method_26962, onCollision, setProperties, updateRotation
addPassenger, addScoreboardTag, addVelocity, adjustMovementForCollisions, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, adjustSingleAxisMovementForCollisions, afterSpawn, animateDamage, applyMirror, applyRotation, baseTick, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundsForPose, calculateDimensions, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canBeRiddenInWater, canBeSpectated, canExplosionDestroyBlock, canFly, canStartRiding, canUsePortals, changeLookDirection, checkBlockCollision, checkDespawn, collides, collidesWith, copyFrom, copyPositionAndRotation, damage, dealDamage, destroy, detach, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, dropStack, entityDataRequiresOperator, equals, equip, equipStack, extinguish, fall, fromTag, getAir, getArmorItems, getBlockPos, getBodyY, getBoundingBox, getBrightnessAtEyes, getBurningDuration, getCameraPosVec, getCommandSource, getCustomName, getDataTracker, getDefaultName, getDefaultNetherPortalCooldown, getDimensions, getDisplayName, getEffectiveExplosionResistance, getEntityId, getEntityName, getEntityWorld, getEyeHeight, getEyeY, getFireTicks, getFlag, getFluidHeight, getHeadYaw, getHeight, getHeightOffset, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getItemsEquipped, getItemsHand, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getMaxAir, getMaxNetherPortalTime, getMountedHeightOffset, getMovementDirection, getName, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerDismountOffset, getPassengerList, getPassengersDeep, getPermissionLevel, getPistonBehavior, getPitch, getPos, getPose, getPrimaryPassenger, getRandomBodyY, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSafeFallDistance, getSavedEntityId, getScoreboardTags, getScoreboardTeam, getServer, getSoundCategory, getSplashSound, getStandingEyeHeight, getSwimSound, getTargetingMargin, getTeamColorValue, getTeleportTarget, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVelocity, getVelocityAffectingPos, getVelocityMultiplier, getVisibilityBoundingBox, getWidth, getX, getY, getYaw, getZ, handleAttack, handleFallDamage, handleStatus, hasCustomName, hashCode, hasNetherPortalCooldown, hasNoGravity, hasPassenger, hasPassengerDeep, hasPassengers, hasPassengerType, hasPermissionLevel, hasPlayerRider, hasVehicle, hasWings, interact, interactAt, isAlive, isChunkPosUpdateRequested, isCollidable, isConnectedThroughVehicle, isCustomNameVisible, isDescending, isFireImmune, isGlowing, isImmuneToExplosion, isInLava, isInRange, isInsideWall, isInsideWaterOrBubbleColumn, isInSneakingPose, isInSwimmingPose, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isLiving, isLogicalSideForUpdatingMovement, isOnFire, isOnGround, isPartOf, isPushable, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSubmergedInWater, isSwimming, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, isWet, kill, lookAt, method_29239, method_29241, method_29919, method_30076, method_30330, method_30632, method_30633, method_30634, method_30950, method_30951, method_31166, moveToBoundingBoxCenter, moveToWorld, offsetX, offsetZ, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onKilledOther, onPassengerLookAround, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, onTrackedDataSet, playFlySound, playSound, playStepSound, playSwimSound, populateCrashReport, pushAwayFrom, pushOutOfBlocks, raycast, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, remove, removeAllPassengers, removePassenger, removeScoreboardTag, requestTeleport, resetNetherPortalCooldown, resetPosition, saveSelfToTag, saveToTag, scheduleVelocityUpdate, sendSystemMessage, setAir, setBoundingBox, setCustomName, setCustomNameVisible, setEntityId, setFireTicks, setFlag, setGlowing, setHeadYaw, setInNetherPortal, setInvisible, setInvulnerable, setNoGravity, setOnFireFor, setOnFireFromLava, setOnGround, setPos, setPose, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSprinting, setSwimming, setUuid, setVelocity, setVelocity, setWorld, setYaw, shouldBroadcastConsoleToOps, shouldLeaveSwimmingPose, shouldReceiveFeedback, shouldRenderName, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTrackOutput, slowMovement, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, squaredHorizontalLength, startRiding, startRiding, stopRiding, streamPassengersRecursively, teleport, teleportRequested, tickNetherPortal, tickNetherPortalCooldown, tickRiding, toListTag, toListTag, toString, toTag, updateKilledAdvancementCriterion, updateMovementInFluid, updatePassengerForDismount, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSwimming, updateTrackedHeadRotation, updateTrackedPosition, updateTrackedPosition, updateVelocity, updateWaterState, wouldPoseNotCollide
private static final TrackedData<Byte> LOYALTY
private static final TrackedData<Boolean> ENCHANTED
private ItemStack tridentStack
private boolean dealtDamage
public int returnTimer
public TridentEntity(EntityType<? extends TridentEntity> type, World world)
public TridentEntity(World world, LivingEntity owner, ItemStack stack)
@Environment(value=CLIENT) public TridentEntity(World world, double x, double y, double z)
protected void initDataTracker()
initDataTracker
in class PersistentProjectileEntity
public void tick()
tick
in class PersistentProjectileEntity
private boolean isOwnerAlive()
protected ItemStack asItemStack()
asItemStack
in class PersistentProjectileEntity
@Environment(value=CLIENT) public boolean isEnchanted()
@Nullable protected EntityHitResult getEntityCollision(Vec3d currentPosition, Vec3d nextPosition)
getEntityCollision
in class PersistentProjectileEntity
protected void onEntityHit(EntityHitResult entityHitResult)
onEntityHit
in class PersistentProjectileEntity
protected SoundEvent getHitSound()
getHitSound
in class PersistentProjectileEntity
public void onPlayerCollision(PlayerEntity player)
onPlayerCollision
in class PersistentProjectileEntity
public void readCustomDataFromTag(CompoundTag tag)
readCustomDataFromTag
in class PersistentProjectileEntity
public void writeCustomDataToTag(CompoundTag tag)
writeCustomDataToTag
in class PersistentProjectileEntity
public void age()
age
in class PersistentProjectileEntity
protected float getDragInWater()
getDragInWater
in class PersistentProjectileEntity
@Environment(value=CLIENT) public boolean shouldRender(double cameraX, double cameraY, double cameraZ)
shouldRender
in class Entity