Package net.minecraft.entity.projectile
Class FishingBobberEntity
java.lang.Object
net.minecraft.entity.Entity
net.minecraft.entity.projectile.ProjectileEntity
net.minecraft.entity.projectile.FishingBobberEntity
- All Implemented Interfaces:
ComponentsAccess,DataTracked,Ownable,ScoreHolder,EntityPos,Nameable,EntityLike,UniquelyIdentifiable
- Mappings:
Namespace Name named net/minecraft/entity/projectile/FishingBobberEntityintermediary net/minecraft/class_1536official cwi
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static enumprivate static enumNested classes/interfaces inherited from class net.minecraft.entity.projectile.ProjectileEntity
ProjectileEntity.ProjectileCreator<T extends ProjectileEntity>Nested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.MoveEffect, Entity.PositionUpdater, Entity.RemovalReasonNested classes/interfaces inherited from interface net.minecraft.util.EntityPos
EntityPos.Simple -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final TrackedData<Boolean> private booleanprivate static final intprivate floatprivate intprivate static final TrackedData<Integer> private intprivate booleanprivate static final Loggerprivate final intprivate intprivate final PositionInterpolatorprivate intprivate FishingBobberEntity.Stateprivate final Randomprivate intprivate final intFields inherited from class net.minecraft.entity.projectile.ProjectileEntity
ownerFields inherited from class net.minecraft.entity.Entity
age, AIR_KEY, collidedSoftly, CUSTOM_DATA_KEY, dataTracker, DEFAULT_FRICTION, DEFAULT_MIN_FREEZE_DAMAGE_TICKS, DEFAULT_PORTAL_COOLDOWN, distanceTraveled, FALL_DISTANCE_KEY, fallDistance, field_44870, field_44871, field_44872, field_49073, field_49791, field_61220, FIRE_KEY, firstUpdate, FLAGS, fluidHeight, FREEZING_DAMAGE_INTERVAL, GLIDING_FLAG_INDEX, GLOWING_FLAG_INDEX, GLOWING_KEY, groundCollision, horizontalCollision, ID_KEY, inPowderSnow, intersectionChecked, INVULNERABLE_KEY, lastPitch, lastRenderX, lastRenderY, lastRenderZ, lastX, lastY, lastYaw, lastZ, MAX_COMMAND_TAGS, MAX_QUEUED_COLLISION_CHECKS, MAX_RIDING_COOLDOWN, MIN_RISING_BUBBLE_COLUMN_SPEED, MOTION_KEY, movementMultiplier, NO_GRAVITY_KEY, noClip, ON_FIRE_FLAG_INDEX, ON_GROUND_KEY, PASSENGERS_KEY, PORTAL_COOLDOWN_KEY, portalManager, POS_KEY, POSE, random, ridingCooldown, ROTATION_KEY, SILENT_KEY, speed, submergedInWater, supportingBlockPos, timeUntilRegen, touchingWater, uuid, UUID_KEY, uuidString, velocityDirty, velocityModified, verticalCollision, wasInPowderSnowFields inherited from interface net.minecraft.scoreboard.ScoreHolder
WILDCARD, WILDCARD_NAME -
Constructor Summary
ConstructorsModifierConstructorDescriptionFishingBobberEntity(EntityType<? extends FishingBobberEntity> type, World world) privateFishingBobberEntity(EntityType<? extends FishingBobberEntity> type, World world, int luckBonus, int waitTimeReductionTicks) FishingBobberEntity(PlayerEntity thrower, World world, int luckBonus, int waitTimeReductionTicks) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleancanUsePortals(boolean allowVehicles) Returns whether the entity can use nether portals and end portals.private voidcreateSpawnPacket(EntityTrackerEntry entityTrackerEntry) Returns a packet to notify the clients of the entity's spawning.protected booleanprotected Entity.MoveEffectReturns the possible effect(s) of an entity moving.private FishingBobberEntity.PositionTypegetPositionType(BlockPos pos) private FishingBobberEntity.PositionTypegetPositionType(BlockPos start, BlockPos end) voidhandleStatus(byte status) Called on the client when the entity receives an entity status from the server.protected voidinitDataTracker(DataTracker.Builder builder) Initializes data tracker.booleanprivate booleanprotected voidonBlockHit(BlockHitResult blockHitResult) protected voidonEntityHit(EntityHitResult entityHitResult) voidCalled on the client side when the entity is removed.voidonSpawnPacket(EntitySpawnS2CPacket packet) Called on the client when the entity receives a spawn packet.voidonTrackedDataSet(TrackedData<?> data) Called on the client when the tracked data is set.protected voidpullHookedEntity(Entity entity) protected voidreadCustomData(ReadView view) voidremove(Entity.RemovalReason reason) Removes the entity.private booleanremoveIfInvalid(PlayerEntity player) voidprivate voidsetPlayerFishHook(@Nullable FishingBobberEntity fishingBobber) booleanshouldRender(double distance) voidtick()Ticks this entity.private voidtickFishingLogic(BlockPos pos) private voidupdateHookedEntityId(@Nullable Entity entity) intprotected voidwriteCustomData(WriteView view) Methods inherited from class net.minecraft.entity.projectile.ProjectileEntity
calculateVelocity, canBreakBlocks, canHit, canModifyAt, copyFrom, damage, deflect, getDefaultPortalCooldown, getEffectCause, getKnockback, getOwner, getTargetingMargin, hitOrDeflect, isOwner, onBroken, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onCollision, onDeflected, setOwner, setVelocity, setVelocity, spawn, spawn, spawnWithVelocity, spawnWithVelocity, spawnWithVelocity, triggerProjectileSpawned, updateRotation, updateRotationMethods inherited from class net.minecraft.entity.Entity
addAirTravelEffects, addCommandTag, addFlapEffects, addPassenger, addPortalChunkTicketAt, addVelocity, addVelocity, addVelocityInternal, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, animateDamage, applyBubbleColumnEffects, applyBubbleColumnSurfaceEffects, applyGravity, applyMirror, applyRotation, attemptTickInVoid, baseTick, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundingBox, calculateDefaultBoundingBox, calculateDimensions, calculateNextStepSoundDistance, canActVoluntarily, canAddPassenger, canAvoidTraps, canBeHitByProjectile, canBeSpectated, canExplosionDestroyBlock, canFreeze, canMoveVoluntarily, canSprintAsVehicle, canStartRiding, canTeleportBetween, castComponentValue, changeLookDirection, checkDespawn, clearQueuedCollisionChecks, clientDamage, collides, collidesWith, collidesWithFluid, collidesWithStateAtPos, copyComponentFrom, copyComponentsFrom, copyComponentsFrom, copyPositionAndRotation, couldAcceptPassenger, defrost, detach, detachAllHeldLeashes, discard, dismountVehicle, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropStack, dropStack, dropStack, emitGameEvent, emitGameEvent, equals, extinguish, extinguishWithSound, fall, get, getAir, getAttachments, getBlockPos, getBlockStateAtPos, getBlockX, getBlockY, getBlockZ, getBodyX, getBodyY, getBodyYaw, getBodyZ, getBoundingBox, getBrightnessAtEyes, getBurningDuration, getCameraPosVec, getChunkPos, getClientCameraPosVec, getCommandSource, getCommandTags, getControllingPassenger, getControllingVehicle, getCustomName, getDamageSources, getDataTracker, getDefaultName, getDimensions, getDisplayName, getEffectiveExplosionResistance, getErrorReporterContext, getEyeHeight, getEyePos, getEyeY, getFacing, getFinalGravity, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getGravity, getHandPosOffset, getHeadYaw, getHeight, getHeldQuadLeashOffsets, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getId, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLastRenderPos, getLeashPos, getLerpedPitch, getLerpedPos, getLerpedYaw, getLootTableKey, getMaxAir, getMinFreezeDamageTicks, getMovement, getMovementDirection, getName, getNameForScoreboard, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerAttachmentPos, getPassengerAttachmentPos, getPassengerDismountOffset, getPassengerList, getPassengerRidingPos, getPassengersDeep, getPickBlockStack, getPistonBehavior, getPitch, getPitch, getPlayerPassengers, getPortalCooldown, getPos, getPose, getPosWithYOffset, getProjectileDeflection, getRandom, getRandomBodyY, getRegistryManager, getRemovalReason, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSafeFallDistance, getSavedEntityId, getScoreboardTeam, getServer, getSoundCategory, getSplashSound, getStackReference, getStandingEyeHeight, getStepHeight, getSteppingBlockState, getSteppingPos, getStepSoundPos, getSwimHeight, getSwimSound, getSyncedPos, getTeamColorValue, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVehicleAttachmentPos, getVelocity, getVelocityAffectingPos, getVelocityMultiplier, getWeaponStack, getWidth, getWorld, getWorldSpawnPos, getX, getY, getYaw, getYaw, getZ, handleAttack, handleFall, handleFallDamage, handleFallDamageForPassengers, hasCollidedSoftly, hasControllingPassenger, hasCustomName, hashCode, hasNoGravity, hasPassenger, hasPassenger, hasPassengerDeep, hasPassengers, hasPlayerRider, hasPortalCooldown, hasQuadLeashAttachmentPoints, hasVehicle, igniteByLava, interact, interactAt, isAlive, isAlwaysInvulnerableTo, isAtCloudHeight, isAttackable, isCollidable, isConnectedThroughVehicle, isControlledByMainPlayer, isControlledByPlayer, isCrawling, isCustomNameVisible, isDescending, isFireImmune, isFlappingWings, isFlyingVehicle, isFrozen, isGlowing, isGlowingLocal, isImmuneToExplosion, isInFluid, isInLava, isInPose, isInRange, isInRange, isInSameTeam, isInsideWall, isInSneakingPose, isInSwimmingPose, isInterpolating, isInvisible, isInvisibleTo, isInvulnerable, isLiving, isLogicalSideForUpdatingMovement, isOnFire, isOnGround, isOnRail, isPartOf, isPlayer, isPushable, isPushedByFluids, isRegionUnloaded, isRemoved, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSubmergedInWater, isSupportedBy, isSwimming, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, kill, lerpPosAndRotation, lerpYaw, limitFallDistance, lookAt, method_73092, method_73094, method_73095, move, movementInputToVelocity, occludeVibrationSignals, onBlockCollision, onDamaged, onDataTrackerUpdate, onExplodedBy, onHeldLeashUpdate, onKilledOther, onLanding, onPassengerLookAround, onPlayerCollision, onRemove, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, playCombinationStepSounds, playExtinguishSound, playSecondaryStepSound, playSound, playSoundIfNotSilent, playStepSound, playSwimSound, playSwimSound, popQueuedCollisionCheck, populateCrashReport, positionInPortal, pushAwayFrom, pushOutOfBlocks, raycast, readData, recalculateDimensions, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, refreshPositionAndAngles, reinitDimensions, removeAllPassengers, removeCommandTag, removeFromDimension, removePassenger, requestTeleport, requestTeleportAndDismount, requestTeleportOffset, resetPortalCooldown, resetPosition, rotate, saveData, saveSelfData, scheduleVelocityUpdate, serverDamage, setAir, setAlwaysSyncAbsolute, setAngles, setApplicableComponent, setBodyYaw, setBoundingBox, setChangeListener, setComponent, setCustomName, setCustomNameVisible, setFireTicks, setFlag, setFrozenTicks, setGlowing, setHeadYaw, setId, setInPowderSnow, setInvisible, setInvulnerable, setLastPositionAndAngles, setMovement, setMovement, setNoGravity, setOnFire, setOnFireFor, setOnFireForTicks, setOnFireFromLava, setOnGround, setPitch, setPortalCooldown, setPos, setPose, setPosition, setPosition, setPosition, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSprinting, setSwimming, setUuid, setVelocity, setVelocity, setVelocityClient, setWorld, setYaw, shouldAlwaysSyncAbsolute, shouldControlVehicles, shouldDismountUnderwater, shouldEscapePowderSnow, shouldPlayBurnSoundInLava, shouldRender, shouldRenderName, shouldSave, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTickBlockCollision, sidedDamage, slowMovement, snipAllHeldLeashes, spawnBubbleColumnParticles, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, startRiding, startRiding, stopRiding, streamPassengersAndSelf, streamSelfAndPassengers, teleport, teleportSpectatingPlayers, teleportTo, tickBlockCollision, tickBlockCollision, tickHeldLeash, tickInVoid, tickPortalCooldown, tickPortalTeleportation, tickRiding, toString, tryUsePortal, unsetRemoved, updateEventHandler, updateKilledAdvancementCriterion, updateLastAngles, updateLastPosition, updateMovementInFluid, updatePassengerForDismount, updatePassengerPosition, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSupportingBlockPos, updateSwimming, updateTrackedHeadRotation, updateTrackedPosition, updateTrackedPositionAndAngles, updateVelocity, updateWaterState, writeDataMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.component.ComponentsAccess
getOrDefault, getTypedMethods inherited from interface net.minecraft.scoreboard.ScoreHolder
getStyledDisplayName
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/entity/projectile/FishingBobberEntity;LOGGER:Lorg/slf4j/Logger;intermediary field_36336Lnet/minecraft/class_1536;field_36336:Lorg/slf4j/Logger;official aLcwi;a:Lorg/slf4j/Logger;
-
field_30665
private static final int field_30665- See Also:
- Mappings:
Namespace Name Mixin selector named field_30665Lnet/minecraft/entity/projectile/FishingBobberEntity;field_30665:Iintermediary field_30665Lnet/minecraft/class_1536;field_30665:Iofficial fLcwi;f:I
-
HOOK_ENTITY_ID
- Mappings:
Namespace Name Mixin selector named HOOK_ENTITY_IDLnet/minecraft/entity/projectile/FishingBobberEntity;HOOK_ENTITY_ID:Lnet/minecraft/entity/data/TrackedData;intermediary field_7170Lnet/minecraft/class_1536;field_7170:Lnet/minecraft/class_2940;official gLcwi;g:Lalo;
-
CAUGHT_FISH
- Mappings:
Namespace Name Mixin selector named CAUGHT_FISHLnet/minecraft/entity/projectile/FishingBobberEntity;CAUGHT_FISH:Lnet/minecraft/entity/data/TrackedData;intermediary field_23234Lnet/minecraft/class_1536;field_23234:Lnet/minecraft/class_2940;official hLcwi;h:Lalo;
-
velocityRandom
- Mappings:
Namespace Name Mixin selector named velocityRandomLnet/minecraft/entity/projectile/FishingBobberEntity;velocityRandom:Lnet/minecraft/util/math/random/Random;intermediary field_23231Lnet/minecraft/class_1536;field_23231:Lnet/minecraft/class_5819;official bLcwi;b:Lbcv;
-
caughtFish
private boolean caughtFish- Mappings:
Namespace Name Mixin selector named caughtFishLnet/minecraft/entity/projectile/FishingBobberEntity;caughtFish:Zintermediary field_23232Lnet/minecraft/class_1536;field_23232:Zofficial cLcwi;c:Z
-
outOfOpenWaterTicks
private int outOfOpenWaterTicks- Mappings:
Namespace Name Mixin selector named outOfOpenWaterTicksLnet/minecraft/entity/projectile/FishingBobberEntity;outOfOpenWaterTicks:Iintermediary field_23233Lnet/minecraft/class_1536;field_23233:Iofficial dLcwi;d:I
-
removalTimer
private int removalTimer- Mappings:
Namespace Name Mixin selector named removalTimerLnet/minecraft/entity/projectile/FishingBobberEntity;removalTimer:Iintermediary field_7167Lnet/minecraft/class_1536;field_7167:Iofficial iLcwi;i:I
-
hookCountdown
private int hookCountdown- Mappings:
Namespace Name Mixin selector named hookCountdownLnet/minecraft/entity/projectile/FishingBobberEntity;hookCountdown:Iintermediary field_7173Lnet/minecraft/class_1536;field_7173:Iofficial jLcwi;j:I
-
waitCountdown
private int waitCountdown- Mappings:
Namespace Name Mixin selector named waitCountdownLnet/minecraft/entity/projectile/FishingBobberEntity;waitCountdown:Iintermediary field_7174Lnet/minecraft/class_1536;field_7174:Iofficial kLcwi;k:I
-
fishTravelCountdown
private int fishTravelCountdown- Mappings:
Namespace Name Mixin selector named fishTravelCountdownLnet/minecraft/entity/projectile/FishingBobberEntity;fishTravelCountdown:Iintermediary field_7172Lnet/minecraft/class_1536;field_7172:Iofficial lLcwi;l:I
-
fishAngle
private float fishAngle- Mappings:
Namespace Name Mixin selector named fishAngleLnet/minecraft/entity/projectile/FishingBobberEntity;fishAngle:Fintermediary field_7169Lnet/minecraft/class_1536;field_7169:Fofficial mLcwi;m:F
-
inOpenWater
private boolean inOpenWater- Mappings:
Namespace Name Mixin selector named inOpenWaterLnet/minecraft/entity/projectile/FishingBobberEntity;inOpenWater:Zintermediary field_23134Lnet/minecraft/class_1536;field_23134:Zofficial nLcwi;n:Z
-
hookedEntity
- Mappings:
Namespace Name Mixin selector named hookedEntityLnet/minecraft/entity/projectile/FishingBobberEntity;hookedEntity:Lnet/minecraft/entity/Entity;intermediary field_7165Lnet/minecraft/class_1536;field_7165:Lnet/minecraft/class_1297;official oLcwi;o:Lcac;
-
state
- Mappings:
Namespace Name Mixin selector named stateLnet/minecraft/entity/projectile/FishingBobberEntity;state:Lnet/minecraft/entity/projectile/FishingBobberEntity$State;intermediary field_7175Lnet/minecraft/class_1536;field_7175:Lnet/minecraft/class_1536$class_1537;official pLcwi;p:Lcwi$a;
-
luckBonus
private final int luckBonus- Mappings:
Namespace Name Mixin selector named luckBonusLnet/minecraft/entity/projectile/FishingBobberEntity;luckBonus:Iintermediary field_7171Lnet/minecraft/class_1536;field_7171:Iofficial qLcwi;q:I
-
waitTimeReductionTicks
private final int waitTimeReductionTicks- Mappings:
Namespace Name Mixin selector named waitTimeReductionTicksLnet/minecraft/entity/projectile/FishingBobberEntity;waitTimeReductionTicks:Iintermediary field_7168Lnet/minecraft/class_1536;field_7168:Iofficial rLcwi;r:I
-
positionInterpolator
- Mappings:
Namespace Name Mixin selector named positionInterpolatorLnet/minecraft/entity/projectile/FishingBobberEntity;positionInterpolator:Lnet/minecraft/entity/PositionInterpolator;intermediary field_60365Lnet/minecraft/class_1536;field_60365:Lnet/minecraft/class_10584;official sLcwi;s:Lcax;
-
-
Constructor Details
-
FishingBobberEntity
private FishingBobberEntity(EntityType<? extends FishingBobberEntity> type, World world, int luckBonus, int waitTimeReductionTicks) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/entity/projectile/FishingBobberEntity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;II)Vintermediary <init>Lnet/minecraft/class_1536;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;II)Vofficial <init>Lcwi;<init>(Lcal;Ldnu;II)V
-
FishingBobberEntity
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)Vintermediary <init>Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)Vofficial <init>Lcac;<init>(Lcal;Ldnu;)V
-
FishingBobberEntity
public FishingBobberEntity(PlayerEntity thrower, World world, int luckBonus, int waitTimeReductionTicks) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/entity/projectile/FishingBobberEntity;<init>(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/world/World;II)Vintermediary <init>Lnet/minecraft/class_1536;<init>(Lnet/minecraft/class_1657;Lnet/minecraft/class_1937;II)Vofficial <init>Lcwi;<init>(Lcvr;Ldnu;II)V
-
-
Method Details
-
getInterpolator
- Overrides:
getInterpolatorin classEntity- Mappings:
Namespace Name Mixin selector named getInterpolatorLnet/minecraft/entity/Entity;getInterpolator()Lnet/minecraft/entity/PositionInterpolator;intermediary method_66233Lnet/minecraft/class_1297;method_66233()Lnet/minecraft/class_10584;official n_Lcac;n_()Lcax;
-
initDataTracker
Initializes data tracker.- Specified by:
initDataTrackerin classEntity- API Note:
- Subclasses should override this and add to the builder any data that needs to be tracked.
- Mappings:
Namespace Name Mixin selector named initDataTrackerLnet/minecraft/entity/Entity;initDataTracker(Lnet/minecraft/entity/data/DataTracker$Builder;)Vintermediary method_5693Lnet/minecraft/class_1297;method_5693(Lnet/minecraft/class_2945$class_9222;)Vofficial aLcac;a(Lals$a;)V
-
deflectsAgainstWorldBorder
protected boolean deflectsAgainstWorldBorder()- Overrides:
deflectsAgainstWorldBorderin classProjectileEntity- Mappings:
Namespace Name Mixin selector named deflectsAgainstWorldBorderLnet/minecraft/entity/projectile/ProjectileEntity;deflectsAgainstWorldBorder()Zintermediary method_62823Lnet/minecraft/class_1676;method_62823()Zofficial wLcwm;w()Z
-
onTrackedDataSet
Called on the client when the tracked data is set.This can be overridden to refresh other fields when the tracked data is set or changed.
- Specified by:
onTrackedDataSetin interfaceDataTracked- Overrides:
onTrackedDataSetin classEntity- Mappings:
Namespace Name Mixin selector named onTrackedDataSetLnet/minecraft/entity/data/DataTracked;onTrackedDataSet(Lnet/minecraft/entity/data/TrackedData;)Vintermediary method_5674Lnet/minecraft/class_9221;method_5674(Lnet/minecraft/class_2940;)Vofficial aLalr;a(Lalo;)V
-
shouldRender
public boolean shouldRender(double distance) - Overrides:
shouldRenderin classEntity- Mappings:
Namespace Name Mixin selector named shouldRenderLnet/minecraft/entity/Entity;shouldRender(D)Zintermediary method_5640Lnet/minecraft/class_1297;method_5640(D)Zofficial aLcac;a(D)Z
-
tick
public void tick()Ticks this entity.- Overrides:
tickin classProjectileEntity- See Also:
- API Note:
- This can be overridden to add additional logics.
super.tick();should be called in those cases. - Implementation Note:
- By default, this delegates all logics to
Entity.baseTick(). - Mappings:
Namespace Name Mixin selector named tickLnet/minecraft/entity/Entity;tick()Vintermediary method_5773Lnet/minecraft/class_1297;method_5773()Vofficial gLcac;g()V
-
removeIfInvalid
- Mappings:
Namespace Name Mixin selector named removeIfInvalidLnet/minecraft/entity/projectile/FishingBobberEntity;removeIfInvalid(Lnet/minecraft/entity/player/PlayerEntity;)Zintermediary method_6959Lnet/minecraft/class_1536;method_6959(Lnet/minecraft/class_1657;)Zofficial aLcwi;a(Lcvr;)Z
-
checkForCollision
private void checkForCollision()- Mappings:
Namespace Name Mixin selector named checkForCollisionLnet/minecraft/entity/projectile/FishingBobberEntity;checkForCollision()Vintermediary method_6958Lnet/minecraft/class_1536;method_6958()Vofficial lLcwi;l()V
-
canHit
- Overrides:
canHitin classProjectileEntity- Mappings:
Namespace Name Mixin selector named canHitLnet/minecraft/entity/projectile/ProjectileEntity;canHit(Lnet/minecraft/entity/Entity;)Zintermediary method_26958Lnet/minecraft/class_1676;method_26958(Lnet/minecraft/class_1297;)Zofficial bLcwm;b(Lcac;)Z
-
onEntityHit
- Overrides:
onEntityHitin classProjectileEntity- Mappings:
Namespace Name Mixin selector named onEntityHitLnet/minecraft/entity/projectile/ProjectileEntity;onEntityHit(Lnet/minecraft/util/hit/EntityHitResult;)Vintermediary method_7454Lnet/minecraft/class_1676;method_7454(Lnet/minecraft/class_3966;)Vofficial aLcwm;a(Lfkf;)V
-
onBlockHit
- Overrides:
onBlockHitin classProjectileEntity- Mappings:
Namespace Name Mixin selector named onBlockHitLnet/minecraft/entity/projectile/ProjectileEntity;onBlockHit(Lnet/minecraft/util/hit/BlockHitResult;)Vintermediary method_24920Lnet/minecraft/class_1676;method_24920(Lnet/minecraft/class_3965;)Vofficial aLcwm;a(Lfke;)V
-
updateHookedEntityId
- Mappings:
Namespace Name Mixin selector named updateHookedEntityIdLnet/minecraft/entity/projectile/FishingBobberEntity;updateHookedEntityId(Lnet/minecraft/entity/Entity;)Vintermediary method_6951Lnet/minecraft/class_1536;method_6951(Lnet/minecraft/class_1297;)Vofficial CLcwi;C(Lcac;)V
-
tickFishingLogic
- Mappings:
Namespace Name Mixin selector named tickFishingLogicLnet/minecraft/entity/projectile/FishingBobberEntity;tickFishingLogic(Lnet/minecraft/util/math/BlockPos;)Vintermediary method_6949Lnet/minecraft/class_1536;method_6949(Lnet/minecraft/class_2338;)Vofficial aLcwi;a(Ljb;)V
-
isOpenOrWaterAround
- Mappings:
Namespace Name Mixin selector named isOpenOrWaterAroundLnet/minecraft/entity/projectile/FishingBobberEntity;isOpenOrWaterAround(Lnet/minecraft/util/math/BlockPos;)Zintermediary method_26086Lnet/minecraft/class_1536;method_26086(Lnet/minecraft/class_2338;)Zofficial bLcwi;b(Ljb;)Z
-
getPositionType
- Mappings:
Namespace Name Mixin selector named getPositionTypeLnet/minecraft/entity/projectile/FishingBobberEntity;getPositionType(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/entity/projectile/FishingBobberEntity$PositionType;intermediary method_26341Lnet/minecraft/class_1536;method_26341(Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;)Lnet/minecraft/class_1536$class_4984;official aLcwi;a(Ljb;Ljb;)Lcwi$b;
-
getPositionType
- Mappings:
Namespace Name Mixin selector named getPositionTypeLnet/minecraft/entity/projectile/FishingBobberEntity;getPositionType(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/entity/projectile/FishingBobberEntity$PositionType;intermediary method_26342Lnet/minecraft/class_1536;method_26342(Lnet/minecraft/class_2338;)Lnet/minecraft/class_1536$class_4984;official cLcwi;c(Ljb;)Lcwi$b;
-
isInOpenWater
public boolean isInOpenWater()- Mappings:
Namespace Name Mixin selector named isInOpenWaterLnet/minecraft/entity/projectile/FishingBobberEntity;isInOpenWater()Zintermediary method_26088Lnet/minecraft/class_1536;method_26088()Zofficial eLcwi;e()Z
-
writeCustomData
- Overrides:
writeCustomDatain classProjectileEntity- Mappings:
Namespace Name Mixin selector named writeCustomDataLnet/minecraft/entity/Entity;writeCustomData(Lnet/minecraft/storage/WriteView;)Vintermediary method_5652Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_11372;)Vofficial aLcac;a(Lfes;)V
-
readCustomData
- Overrides:
readCustomDatain classProjectileEntity- Mappings:
Namespace Name Mixin selector named readCustomDataLnet/minecraft/entity/Entity;readCustomData(Lnet/minecraft/storage/ReadView;)Vintermediary method_5749Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_11368;)Vofficial aLcac;a(Lfeq;)V
-
use
- Mappings:
Namespace Name Mixin selector named useLnet/minecraft/entity/projectile/FishingBobberEntity;use(Lnet/minecraft/item/ItemStack;)Iintermediary method_6957Lnet/minecraft/class_1536;method_6957(Lnet/minecraft/class_1799;)Iofficial aLcwi;a(Lddt;)I
-
handleStatus
public void handleStatus(byte status) Called on the client when the entity receives an entity status from the server. They are often used to spawn particles or play sounds. Subclasses can override this method to handle custom entity status.- Overrides:
handleStatusin classEntity- See Also:
- API Note:
- To send an entity status, use
World.sendEntityStatus(net.minecraft.entity.Entity, byte). - Mappings:
Namespace Name Mixin selector named handleStatusLnet/minecraft/entity/Entity;handleStatus(B)Vintermediary method_5711Lnet/minecraft/class_1297;method_5711(B)Vofficial bLcac;b(B)V
-
pullHookedEntity
- Mappings:
Namespace Name Mixin selector named pullHookedEntityLnet/minecraft/entity/projectile/FishingBobberEntity;pullHookedEntity(Lnet/minecraft/entity/Entity;)Vintermediary method_6954Lnet/minecraft/class_1536;method_6954(Lnet/minecraft/class_1297;)Vofficial dLcwi;d(Lcac;)V
-
getMoveEffect
Returns the possible effect(s) of an entity moving.- Overrides:
getMoveEffectin classEntity- Implementation Note:
- If an entity does not emit game events or play move sounds, this method should be overridden as returning a value other than ALL allows skipping some movement logic and boost ticking performance.
- Mappings:
Namespace Name Mixin selector named getMoveEffectLnet/minecraft/entity/Entity;getMoveEffect()Lnet/minecraft/entity/Entity$MoveEffect;intermediary method_33570Lnet/minecraft/class_1297;method_33570()Lnet/minecraft/class_1297$class_5799;official bjLcac;bj()Lcac$d;
-
remove
Removes the entity.- Overrides:
removein classEntity- See Also:
- Mappings:
Namespace Name Mixin selector named removeLnet/minecraft/entity/Entity;remove(Lnet/minecraft/entity/Entity$RemovalReason;)Vintermediary method_5650Lnet/minecraft/class_1297;method_5650(Lnet/minecraft/class_1297$class_5529;)Vofficial aLcac;a(Lcac$e;)V
-
onRemoved
public void onRemoved()Called on the client side when the entity is removed.- Overrides:
onRemovedin classEntity- API Note:
- To handle entity removal server-side, override
remove(net.minecraft.entity.Entity.RemovalReason)and add custom logic there. - Mappings:
Namespace Name Mixin selector named onRemovedLnet/minecraft/entity/Entity;onRemoved()Vintermediary method_36209Lnet/minecraft/class_1297;method_36209()Vofficial avLcac;av()V
-
setOwner
- Overrides:
setOwnerin classProjectileEntity- Mappings:
Namespace Name Mixin selector named setOwnerLnet/minecraft/entity/projectile/ProjectileEntity;setOwner(Lnet/minecraft/entity/Entity;)Vintermediary method_7432Lnet/minecraft/class_1676;method_7432(Lnet/minecraft/class_1297;)Vofficial cLcwm;c(Lcac;)V
-
setPlayerFishHook
- Mappings:
Namespace Name Mixin selector named setPlayerFishHookLnet/minecraft/entity/projectile/FishingBobberEntity;setPlayerFishHook(Lnet/minecraft/entity/projectile/FishingBobberEntity;)Vintermediary method_36210Lnet/minecraft/class_1536;method_36210(Lnet/minecraft/class_1536;)Vofficial aLcwi;a(Lcwi;)V
-
getPlayerOwner
- Mappings:
Namespace Name Mixin selector named getPlayerOwnerLnet/minecraft/entity/projectile/FishingBobberEntity;getPlayerOwner()Lnet/minecraft/entity/player/PlayerEntity;intermediary method_6947Lnet/minecraft/class_1536;method_6947()Lnet/minecraft/class_1657;official fLcwi;f()Lcvr;
-
getHookedEntity
- Mappings:
Namespace Name Mixin selector named getHookedEntityLnet/minecraft/entity/projectile/FishingBobberEntity;getHookedEntity()Lnet/minecraft/entity/Entity;intermediary method_26957Lnet/minecraft/class_1536;method_26957()Lnet/minecraft/class_1297;official iLcwi;i()Lcac;
-
canUsePortals
public boolean canUsePortals(boolean allowVehicles) Returns whether the entity can use nether portals and end portals.EnderDragonEntity,WitherEntity, andFishingBobberEntitycannot use portals.- Overrides:
canUsePortalsin classEntity- Returns:
- whether the entity can use nether portals and end portals
- Mappings:
Namespace Name Mixin selector named canUsePortalsLnet/minecraft/entity/Entity;canUsePortals(Z)Zintermediary method_5822Lnet/minecraft/class_1297;method_5822(Z)Zofficial oLcac;o(Z)Z
-
createSpawnPacket
Returns a packet to notify the clients of the entity's spawning.- Overrides:
createSpawnPacketin classProjectileEntity- Returns:
- a packet to notify the clients of the entity's spawning
- API Note:
- Subclasses should return
new EntitySpawnS2CPacket(this), unless they use a custom spawning packet. - Mappings:
Namespace Name Mixin selector named createSpawnPacketLnet/minecraft/entity/Entity;createSpawnPacket(Lnet/minecraft/server/network/EntityTrackerEntry;)Lnet/minecraft/network/packet/Packet;intermediary method_18002Lnet/minecraft/class_1297;method_18002(Lnet/minecraft/class_3231;)Lnet/minecraft/class_2596;official aLcac;a(Lauh;)Laad;
-
onSpawnPacket
Called on the client when the entity receives a spawn packet.This sets the entity's position, angles, ID, and UUID. Subclasses can override this to initialize additional fields.
- Overrides:
onSpawnPacketin classProjectileEntity- Mappings:
Namespace Name Mixin selector named onSpawnPacketLnet/minecraft/entity/Entity;onSpawnPacket(Lnet/minecraft/network/packet/s2c/play/EntitySpawnS2CPacket;)Vintermediary method_31471Lnet/minecraft/class_1297;method_31471(Lnet/minecraft/class_2604;)Vofficial aLcac;a(Lacy;)V
-