Class FishingBobberEntity
- All Implemented Interfaces:
DataTracked
,Ownable
,ScoreHolder
,Nameable
,EntityLike
- Mappings:
Namespace Name named net/minecraft/entity/projectile/FishingBobberEntity
intermediary net/minecraft/class_1536
official cql
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static enum
private static enum
Nested 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.RemovalReason
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final TrackedData
<Boolean> private boolean
private static final int
private float
private int
private static final TrackedData
<Integer> private int
private boolean
private static final Logger
private final int
private int
private int
private FishingBobberEntity.State
private final Random
private int
private final int
Fields inherited from class net.minecraft.entity.Entity
age, collidedSoftly, dataTracker, DEFAULT_FRICTION, DEFAULT_MIN_FREEZE_DAMAGE_TICKS, DEFAULT_PORTAL_COOLDOWN, distanceTraveled, fallDistance, field_44870, field_44871, field_44872, field_49073, field_49791, firstUpdate, FLAGS, fluidHeight, FREEZING_DAMAGE_INTERVAL, GLIDING_FLAG_INDEX, GLOWING_FLAG_INDEX, groundCollision, horizontalCollision, ID_KEY, inPowderSnow, intersectionChecked, lastRenderX, lastRenderY, lastRenderZ, MAX_COMMAND_TAGS, MAX_RIDING_COOLDOWN, MIN_RISING_BUBBLE_COLUMN_SPEED, movementMultiplier, noClip, ON_FIRE_FLAG_INDEX, PASSENGERS_KEY, portalManager, POSE, prevPitch, prevX, prevY, prevYaw, prevZ, random, ridingCooldown, speed, submergedInWater, supportingBlockPos, timeUntilRegen, touchingWater, uuid, UUID_KEY, uuidString, velocityDirty, velocityModified, verticalCollision, wasInPowderSnow
Fields inherited from interface net.minecraft.scoreboard.ScoreHolder
WILDCARD, WILDCARD_NAME
-
Constructor Summary
ModifierConstructorDescriptionFishingBobberEntity
(EntityType<? extends FishingBobberEntity> type, World world) private
FishingBobberEntity
(EntityType<? extends FishingBobberEntity> type, World world, int luckBonus, int waitTimeReductionTicks) FishingBobberEntity
(PlayerEntity thrower, World world, int luckBonus, int waitTimeReductionTicks, ItemStack stack) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
canUsePortals
(boolean allowVehicles) Returns whether the entity can use nether portals and end portals.private void
createSpawnPacket
(EntityTrackerEntry entityTrackerEntry) Returns a packet to notify the clients of the entity's spawning.protected boolean
protected Entity.MoveEffect
Returns the possible effect(s) of an entity moving.private FishingBobberEntity.PositionType
getPositionType
(BlockPos pos) private FishingBobberEntity.PositionType
getPositionType
(BlockPos start, BlockPos end) void
handleStatus
(byte status) Called on the client when the entity receives an entity status from the server.protected void
initDataTracker
(DataTracker.Builder builder) Initializes data tracker.boolean
private boolean
protected void
onBlockHit
(BlockHitResult blockHitResult) protected void
onEntityHit
(EntityHitResult entityHitResult) void
Called on the client side when the entity is removed.void
onSpawnPacket
(EntitySpawnS2CPacket packet) Called on the client when the entity receives a spawn packet.void
onTrackedDataSet
(TrackedData<?> data) Called on the client when the tracked data is set.protected void
pullHookedEntity
(Entity entity) void
Reads custom data fromnbt
.void
remove
(Entity.RemovalReason reason) Removes the entity.private boolean
removeIfInvalid
(PlayerEntity player) void
private void
setPlayerFishHook
(@Nullable FishingBobberEntity fishingBobber) boolean
shouldRender
(double distance) void
tick()
Ticks this entity.private void
tickFishingLogic
(BlockPos pos) private void
updateHookedEntityId
(@Nullable Entity entity) void
updateTrackedPositionAndAngles
(double x, double y, double z, float yaw, float pitch, int interpolationSteps) int
void
Writes custom data tonbt
.Methods inherited from class net.minecraft.entity.projectile.ProjectileEntity
calculateVelocity, canBreakBlocks, canHit, canModifyAt, copyFrom, damage, deflect, getDefaultPortalCooldown, getEffectCause, getEntity, getKnockback, getOwner, getTargetingMargin, hitOrDeflect, isOwner, onBroken, onCollision, onDeflected, setOwner, setVelocity, setVelocity, setVelocityClient, spawn, spawn, spawnWithVelocity, spawnWithVelocity, spawnWithVelocity, triggerProjectileSpawned, updateRotation, updateRotation
Methods inherited from class net.minecraft.entity.Entity
addAirTravelEffects, addCommandTag, addFlapEffects, addPassenger, addPortalChunkTicketAt, addVelocity, addVelocity, addVelocityInternal, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, animateDamage, applyGravity, applyMirror, applyRotation, attemptTickInVoid, baseTick, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundingBox, calculateDimensions, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canBeHitByProjectile, canBeSpectated, canExplosionDestroyBlock, canFreeze, canMoveVoluntarily, canSprintAsVehicle, canStartRiding, canTeleportBetween, changeLookDirection, checkDespawn, clientDamage, collidesWith, collidesWithStateAtPos, copyPositionAndRotation, couldAcceptPassenger, detach, discard, dismountVehicle, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, dropStack, emitGameEvent, emitGameEvent, entityDataRequiresOperator, equals, extinguish, extinguishWithSound, fall, getAir, getAttachments, getBlockPos, getBlockStateAtPos, getBlockX, getBlockY, getBlockZ, getBodyY, getBodyYaw, getBoundingBox, getBrightnessAtEyes, getBurningDuration, getCameraPosVec, getChunkPos, getClientCameraPosVec, getCommandSource, getCommandTags, getControllingPassenger, getControllingVehicle, getCustomName, getDamageSources, getDataTracker, getDefaultName, getDimensions, getDisplayName, getEffectiveExplosionResistance, getEntityWorld, getEyeHeight, getEyePos, getEyeY, getFacing, getFinalGravity, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getGravity, getHandPosOffset, getHeadYaw, getHeight, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getId, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLastRenderPos, getLeashOffset, getLeashOffset, getLeashPos, getLerpedPitch, getLerpedPos, getLerpedYaw, getLerpTargetPitch, getLerpTargetX, getLerpTargetY, getLerpTargetYaw, getLerpTargetZ, 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, handleFallDamage, hasCollidedSoftly, hasControllingPassenger, hasCustomName, hashCode, hasNoGravity, hasPassenger, hasPassenger, hasPassengerDeep, hasPassengers, hasPlayerRider, hasPortalCooldown, hasVehicle, interact, interactAt, isAlive, isAlwaysInvulnerableTo, isAttackable, isCollidable, isConnectedThroughVehicle, isControlledByPlayer, isCrawling, isCustomNameVisible, isDescending, isFireImmune, isFlappingWings, isFrozen, isGlowing, isGlowingLocal, isImmuneToExplosion, isInFluid, isInLava, isInPose, isInRange, isInRange, isInSameTeam, isInsideWall, isInsideWaterOrBubbleColumn, isInSneakingPose, isInSwimmingPose, isInvisible, isInvisibleTo, isInvulnerable, isLiving, isLocalPlayerOrLogicalSideForUpdatingMovement, isLogicalSideForUpdatingMovement, isOnFire, isOnGround, isOnRail, isPartOf, isPlayer, isPushable, isPushedByFluids, isRegionUnloaded, isRemoved, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSubmergedInWater, isSupportedBy, isSwimming, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, isWet, kill, lerpPosAndRotation, lerpYaw, limitFallDistance, lookAt, move, movementInputToVelocity, occludeVibrationSignals, offsetX, offsetZ, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onDamaged, onDataTrackerUpdate, onExplodedBy, onKilledOther, onLanding, onPassengerLookAround, onPlayerCollision, onRemove, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, playCombinationStepSounds, playExtinguishSound, playSecondaryStepSound, playSound, playSoundIfNotSilent, playStepSound, playSwimSound, playSwimSound, populateCrashReport, positionInPortal, pushAwayFrom, pushOutOfBlocks, queueBlockCollisionCheck, raycast, readNbt, recalculateDimensions, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, refreshPositionAndAngles, reinitDimensions, removeAllPassengers, removeCommandTag, removeFromDimension, removePassenger, requestTeleport, requestTeleportAndDismount, requestTeleportOffset, resetLerp, resetPortalCooldown, resetPosition, rotate, saveNbt, saveSelfNbt, scheduleVelocityUpdate, serverDamage, setAir, setAngles, setBodyYaw, setBoundingBox, setChangeListener, setCustomName, setCustomNameVisible, setFireTicks, setFlag, setFrozenTicks, setGlowing, setHeadYaw, setId, setInPowderSnow, setInvisible, setInvulnerable, setMovement, setNoGravity, setOnFire, setOnFireFor, setOnFireForTicks, setOnFireFromLava, setOnGround, setPitch, setPortalCooldown, setPos, setPose, setPosition, setPosition, setPosition, setPrevPositionAndAngles, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSprinting, setSwimming, setUuid, setVelocity, setVelocity, setWorld, setYaw, shouldControlVehicles, shouldDismountUnderwater, shouldEscapePowderSnow, shouldPlayBurnSoundInLava, shouldRender, shouldRenderName, shouldSave, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTickBlockCollision, sidedDamage, slowMovement, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, startRiding, startRiding, stopRiding, streamPassengersAndSelf, streamSelfAndPassengers, teleport, teleportTo, tickBlockCollision, tickBlockCollision, tickInVoid, tickPortalCooldown, tickPortalTeleportation, tickRiding, toNbtList, toNbtList, toString, tryUsePortal, unsetRemoved, updateEventHandler, updateKilledAdvancementCriterion, updateMovementInFluid, updatePassengerForDismount, updatePassengerPosition, updatePassengerPosition, updatePosition, updatePositionAndAngles, updatePrevAngles, updatePrevPosition, updateSupportingBlockPos, updateSwimming, updateTrackedHeadRotation, updateTrackedPosition, updateVelocity, updateWaterState, writeNbt
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.scoreboard.ScoreHolder
getStyledDisplayName
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/entity/projectile/FishingBobberEntity;LOGGER:Lorg/slf4j/Logger;
intermediary field_36336
Lnet/minecraft/class_1536;field_36336:Lorg/slf4j/Logger;
official a
Lcql;a:Lorg/slf4j/Logger;
-
field_30665
private static final int field_30665- See Also:
- Mappings:
Namespace Name Mixin selector named field_30665
Lnet/minecraft/entity/projectile/FishingBobberEntity;field_30665:I
intermediary field_30665
Lnet/minecraft/class_1536;field_30665:I
official e
Lcql;e:I
-
HOOK_ENTITY_ID
- Mappings:
Namespace Name Mixin selector named HOOK_ENTITY_ID
Lnet/minecraft/entity/projectile/FishingBobberEntity;HOOK_ENTITY_ID:Lnet/minecraft/entity/data/TrackedData;
intermediary field_7170
Lnet/minecraft/class_1536;field_7170:Lnet/minecraft/class_2940;
official f
Lcql;f:Lalc;
-
CAUGHT_FISH
- Mappings:
Namespace Name Mixin selector named CAUGHT_FISH
Lnet/minecraft/entity/projectile/FishingBobberEntity;CAUGHT_FISH:Lnet/minecraft/entity/data/TrackedData;
intermediary field_23234
Lnet/minecraft/class_1536;field_23234:Lnet/minecraft/class_2940;
official g
Lcql;g:Lalc;
-
velocityRandom
- Mappings:
Namespace Name Mixin selector named velocityRandom
Lnet/minecraft/entity/projectile/FishingBobberEntity;velocityRandom:Lnet/minecraft/util/math/random/Random;
intermediary field_23231
Lnet/minecraft/class_1536;field_23231:Lnet/minecraft/class_5819;
official b
Lcql;b:Lbam;
-
caughtFish
private boolean caughtFish- Mappings:
Namespace Name Mixin selector named caughtFish
Lnet/minecraft/entity/projectile/FishingBobberEntity;caughtFish:Z
intermediary field_23232
Lnet/minecraft/class_1536;field_23232:Z
official c
Lcql;c:Z
-
outOfOpenWaterTicks
private int outOfOpenWaterTicks- Mappings:
Namespace Name Mixin selector named outOfOpenWaterTicks
Lnet/minecraft/entity/projectile/FishingBobberEntity;outOfOpenWaterTicks:I
intermediary field_23233
Lnet/minecraft/class_1536;field_23233:I
official d
Lcql;d:I
-
removalTimer
private int removalTimer- Mappings:
Namespace Name Mixin selector named removalTimer
Lnet/minecraft/entity/projectile/FishingBobberEntity;removalTimer:I
intermediary field_7167
Lnet/minecraft/class_1536;field_7167:I
official h
Lcql;h:I
-
hookCountdown
private int hookCountdown- Mappings:
Namespace Name Mixin selector named hookCountdown
Lnet/minecraft/entity/projectile/FishingBobberEntity;hookCountdown:I
intermediary field_7173
Lnet/minecraft/class_1536;field_7173:I
official i
Lcql;i:I
-
waitCountdown
private int waitCountdown- Mappings:
Namespace Name Mixin selector named waitCountdown
Lnet/minecraft/entity/projectile/FishingBobberEntity;waitCountdown:I
intermediary field_7174
Lnet/minecraft/class_1536;field_7174:I
official j
Lcql;j:I
-
fishTravelCountdown
private int fishTravelCountdown- Mappings:
Namespace Name Mixin selector named fishTravelCountdown
Lnet/minecraft/entity/projectile/FishingBobberEntity;fishTravelCountdown:I
intermediary field_7172
Lnet/minecraft/class_1536;field_7172:I
official k
Lcql;k:I
-
fishAngle
private float fishAngle- Mappings:
Namespace Name Mixin selector named fishAngle
Lnet/minecraft/entity/projectile/FishingBobberEntity;fishAngle:F
intermediary field_7169
Lnet/minecraft/class_1536;field_7169:F
official l
Lcql;l:F
-
inOpenWater
private boolean inOpenWater- Mappings:
Namespace Name Mixin selector named inOpenWater
Lnet/minecraft/entity/projectile/FishingBobberEntity;inOpenWater:Z
intermediary field_23134
Lnet/minecraft/class_1536;field_23134:Z
official m
Lcql;m:Z
-
hookedEntity
- Mappings:
Namespace Name Mixin selector named hookedEntity
Lnet/minecraft/entity/projectile/FishingBobberEntity;hookedEntity:Lnet/minecraft/entity/Entity;
intermediary field_7165
Lnet/minecraft/class_1536;field_7165:Lnet/minecraft/class_1297;
official n
Lcql;n:Lbvj;
-
state
- Mappings:
Namespace Name Mixin selector named state
Lnet/minecraft/entity/projectile/FishingBobberEntity;state:Lnet/minecraft/entity/projectile/FishingBobberEntity$State;
intermediary field_7175
Lnet/minecraft/class_1536;field_7175:Lnet/minecraft/class_1536$class_1537;
official o
Lcql;o:Lcql$a;
-
luckBonus
private final int luckBonus- Mappings:
Namespace Name Mixin selector named luckBonus
Lnet/minecraft/entity/projectile/FishingBobberEntity;luckBonus:I
intermediary field_7171
Lnet/minecraft/class_1536;field_7171:I
official p
Lcql;p:I
-
waitTimeReductionTicks
private final int waitTimeReductionTicks- Mappings:
Namespace Name Mixin selector named waitTimeReductionTicks
Lnet/minecraft/entity/projectile/FishingBobberEntity;waitTimeReductionTicks:I
intermediary field_7168
Lnet/minecraft/class_1536;field_7168:I
official q
Lcql;q:I
-
-
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)V
intermediary <init>
Lnet/minecraft/class_1536;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;II)V
official <init>
Lcql;<init>(Lbvq;Ldhh;II)V
-
FishingBobberEntity
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
intermediary <init>
Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)V
official <init>
Lbvj;<init>(Lbvq;Ldhh;)V
-
FishingBobberEntity
public FishingBobberEntity(PlayerEntity thrower, World world, int luckBonus, int waitTimeReductionTicks, ItemStack stack) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/entity/projectile/FishingBobberEntity;<init>(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/world/World;IILnet/minecraft/item/ItemStack;)V
intermediary <init>
Lnet/minecraft/class_1536;<init>(Lnet/minecraft/class_1657;Lnet/minecraft/class_1937;IILnet/minecraft/class_1799;)V
official <init>
Lcql;<init>(Lcpw;Ldhh;IILcxo;)V
-
-
Method Details
-
initDataTracker
Initializes data tracker.- Specified by:
initDataTracker
in 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 initDataTracker
Lnet/minecraft/entity/Entity;initDataTracker(Lnet/minecraft/entity/data/DataTracker$Builder;)V
intermediary method_5693
Lnet/minecraft/class_1297;method_5693(Lnet/minecraft/class_2945$class_9222;)V
official a
Lbvj;a(Lalg$a;)V
-
deflectsAgainstWorldBorder
protected boolean deflectsAgainstWorldBorder()- Overrides:
deflectsAgainstWorldBorder
in classProjectileEntity
- Mappings:
Namespace Name Mixin selector named deflectsAgainstWorldBorder
Lnet/minecraft/entity/projectile/ProjectileEntity;deflectsAgainstWorldBorder()Z
intermediary method_62823
Lnet/minecraft/class_1676;method_62823()Z
official C
Lcqp;C()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:
onTrackedDataSet
in interfaceDataTracked
- Overrides:
onTrackedDataSet
in classEntity
- Mappings:
Namespace Name Mixin selector named onTrackedDataSet
Lnet/minecraft/entity/data/DataTracked;onTrackedDataSet(Lnet/minecraft/entity/data/TrackedData;)V
intermediary method_5674
Lnet/minecraft/class_9221;method_5674(Lnet/minecraft/class_2940;)V
official a
Lalf;a(Lalc;)V
-
shouldRender
public boolean shouldRender(double distance) - Overrides:
shouldRender
in classEntity
- Mappings:
Namespace Name Mixin selector named shouldRender
Lnet/minecraft/entity/Entity;shouldRender(D)Z
intermediary method_5640
Lnet/minecraft/class_1297;method_5640(D)Z
official a
Lbvj;a(D)Z
-
updateTrackedPositionAndAngles
public void updateTrackedPositionAndAngles(double x, double y, double z, float yaw, float pitch, int interpolationSteps) - Overrides:
updateTrackedPositionAndAngles
in classEntity
- Mappings:
Namespace Name Mixin selector named updateTrackedPositionAndAngles
Lnet/minecraft/entity/Entity;updateTrackedPositionAndAngles(DDDFFI)V
intermediary method_5759
Lnet/minecraft/class_1297;method_5759(DDDFFI)V
official a
Lbvj;a(DDDFFI)V
-
tick
public void tick()Ticks this entity.- Overrides:
tick
in 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 tick
Lnet/minecraft/entity/Entity;tick()V
intermediary method_5773
Lnet/minecraft/class_1297;method_5773()V
official h
Lbvj;h()V
-
removeIfInvalid
- Mappings:
Namespace Name Mixin selector named removeIfInvalid
Lnet/minecraft/entity/projectile/FishingBobberEntity;removeIfInvalid(Lnet/minecraft/entity/player/PlayerEntity;)Z
intermediary method_6959
Lnet/minecraft/class_1536;method_6959(Lnet/minecraft/class_1657;)Z
official a
Lcql;a(Lcpw;)Z
-
checkForCollision
private void checkForCollision()- Mappings:
Namespace Name Mixin selector named checkForCollision
Lnet/minecraft/entity/projectile/FishingBobberEntity;checkForCollision()V
intermediary method_6958
Lnet/minecraft/class_1536;method_6958()V
official t
Lcql;t()V
-
canHit
- Overrides:
canHit
in classProjectileEntity
- Mappings:
Namespace Name Mixin selector named canHit
Lnet/minecraft/entity/projectile/ProjectileEntity;canHit(Lnet/minecraft/entity/Entity;)Z
intermediary method_26958
Lnet/minecraft/class_1676;method_26958(Lnet/minecraft/class_1297;)Z
official b
Lcqp;b(Lbvj;)Z
-
onEntityHit
- Overrides:
onEntityHit
in classProjectileEntity
- Mappings:
Namespace Name Mixin selector named onEntityHit
Lnet/minecraft/entity/projectile/ProjectileEntity;onEntityHit(Lnet/minecraft/util/hit/EntityHitResult;)V
intermediary method_7454
Lnet/minecraft/class_1676;method_7454(Lnet/minecraft/class_3966;)V
official a
Lcqp;a(Lfbu;)V
-
onBlockHit
- Overrides:
onBlockHit
in classProjectileEntity
- Mappings:
Namespace Name Mixin selector named onBlockHit
Lnet/minecraft/entity/projectile/ProjectileEntity;onBlockHit(Lnet/minecraft/util/hit/BlockHitResult;)V
intermediary method_24920
Lnet/minecraft/class_1676;method_24920(Lnet/minecraft/class_3965;)V
official a
Lcqp;a(Lfbt;)V
-
updateHookedEntityId
- Mappings:
Namespace Name Mixin selector named updateHookedEntityId
Lnet/minecraft/entity/projectile/FishingBobberEntity;updateHookedEntityId(Lnet/minecraft/entity/Entity;)V
intermediary method_6951
Lnet/minecraft/class_1536;method_6951(Lnet/minecraft/class_1297;)V
official B
Lcql;B(Lbvj;)V
-
tickFishingLogic
- Mappings:
Namespace Name Mixin selector named tickFishingLogic
Lnet/minecraft/entity/projectile/FishingBobberEntity;tickFishingLogic(Lnet/minecraft/util/math/BlockPos;)V
intermediary method_6949
Lnet/minecraft/class_1536;method_6949(Lnet/minecraft/class_2338;)V
official a
Lcql;a(Ljh;)V
-
isOpenOrWaterAround
- Mappings:
Namespace Name Mixin selector named isOpenOrWaterAround
Lnet/minecraft/entity/projectile/FishingBobberEntity;isOpenOrWaterAround(Lnet/minecraft/util/math/BlockPos;)Z
intermediary method_26086
Lnet/minecraft/class_1536;method_26086(Lnet/minecraft/class_2338;)Z
official b
Lcql;b(Ljh;)Z
-
getPositionType
- Mappings:
Namespace Name Mixin selector named getPositionType
Lnet/minecraft/entity/projectile/FishingBobberEntity;getPositionType(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/entity/projectile/FishingBobberEntity$PositionType;
intermediary method_26341
Lnet/minecraft/class_1536;method_26341(Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;)Lnet/minecraft/class_1536$class_4984;
official a
Lcql;a(Ljh;Ljh;)Lcql$b;
-
getPositionType
- Mappings:
Namespace Name Mixin selector named getPositionType
Lnet/minecraft/entity/projectile/FishingBobberEntity;getPositionType(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/entity/projectile/FishingBobberEntity$PositionType;
intermediary method_26342
Lnet/minecraft/class_1536;method_26342(Lnet/minecraft/class_2338;)Lnet/minecraft/class_1536$class_4984;
official c
Lcql;c(Ljh;)Lcql$b;
-
isInOpenWater
public boolean isInOpenWater()- Mappings:
Namespace Name Mixin selector named isInOpenWater
Lnet/minecraft/entity/projectile/FishingBobberEntity;isInOpenWater()Z
intermediary method_26088
Lnet/minecraft/class_1536;method_26088()Z
official l
Lcql;l()Z
-
writeCustomDataToNbt
Writes custom data tonbt
. Subclasses have to implement this.NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.
- Overrides:
writeCustomDataToNbt
in classProjectileEntity
- See Also:
- Mappings:
Namespace Name Mixin selector named writeCustomDataToNbt
Lnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
intermediary method_5652
Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V
official b
Lbvj;b(Lux;)V
-
readCustomDataFromNbt
Reads custom data fromnbt
. Subclasses have to implement this.NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.
nbt
might not have all expected keys, or might have a key whose value does not meet the requirement (such as the type or the range). This method should fall back to a reasonable default value instead of throwing an exception.- Overrides:
readCustomDataFromNbt
in classProjectileEntity
- See Also:
- Mappings:
Namespace Name Mixin selector named readCustomDataFromNbt
Lnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
intermediary method_5749
Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V
official a
Lbvj;a(Lux;)V
-
use
- Mappings:
Namespace Name Mixin selector named use
Lnet/minecraft/entity/projectile/FishingBobberEntity;use(Lnet/minecraft/item/ItemStack;)I
intermediary method_6957
Lnet/minecraft/class_1536;method_6957(Lnet/minecraft/class_1799;)I
official a
Lcql;a(Lcxo;)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:
handleStatus
in classEntity
- See Also:
- API Note:
- To send an entity status, use
World.sendEntityStatus(net.minecraft.entity.Entity, byte)
. - Mappings:
Namespace Name Mixin selector named handleStatus
Lnet/minecraft/entity/Entity;handleStatus(B)V
intermediary method_5711
Lnet/minecraft/class_1297;method_5711(B)V
official b
Lbvj;b(B)V
-
pullHookedEntity
- Mappings:
Namespace Name Mixin selector named pullHookedEntity
Lnet/minecraft/entity/projectile/FishingBobberEntity;pullHookedEntity(Lnet/minecraft/entity/Entity;)V
intermediary method_6954
Lnet/minecraft/class_1536;method_6954(Lnet/minecraft/class_1297;)V
official d
Lcql;d(Lbvj;)V
-
getMoveEffect
Returns the possible effect(s) of an entity moving.- Overrides:
getMoveEffect
in 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 getMoveEffect
Lnet/minecraft/entity/Entity;getMoveEffect()Lnet/minecraft/entity/Entity$MoveEffect;
intermediary method_33570
Lnet/minecraft/class_1297;method_33570()Lnet/minecraft/class_1297$class_5799;
official bg
Lbvj;bg()Lbvj$c;
-
remove
Removes the entity.- Overrides:
remove
in classEntity
- See Also:
- Mappings:
Namespace Name Mixin selector named remove
Lnet/minecraft/entity/Entity;remove(Lnet/minecraft/entity/Entity$RemovalReason;)V
intermediary method_5650
Lnet/minecraft/class_1297;method_5650(Lnet/minecraft/class_1297$class_5529;)V
official a
Lbvj;a(Lbvj$d;)V
-
onRemoved
public void onRemoved()Called on the client side when the entity is removed.- Overrides:
onRemoved
in 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 onRemoved
Lnet/minecraft/entity/Entity;onRemoved()V
intermediary method_36209
Lnet/minecraft/class_1297;method_36209()V
official av
Lbvj;av()V
-
setOwner
- Overrides:
setOwner
in classProjectileEntity
- Mappings:
Namespace Name Mixin selector named setOwner
Lnet/minecraft/entity/projectile/ProjectileEntity;setOwner(Lnet/minecraft/entity/Entity;)V
intermediary method_7432
Lnet/minecraft/class_1676;method_7432(Lnet/minecraft/class_1297;)V
official c
Lcqp;c(Lbvj;)V
-
setPlayerFishHook
- Mappings:
Namespace Name Mixin selector named setPlayerFishHook
Lnet/minecraft/entity/projectile/FishingBobberEntity;setPlayerFishHook(Lnet/minecraft/entity/projectile/FishingBobberEntity;)V
intermediary method_36210
Lnet/minecraft/class_1536;method_36210(Lnet/minecraft/class_1536;)V
official a
Lcql;a(Lcql;)V
-
getPlayerOwner
- Mappings:
Namespace Name Mixin selector named getPlayerOwner
Lnet/minecraft/entity/projectile/FishingBobberEntity;getPlayerOwner()Lnet/minecraft/entity/player/PlayerEntity;
intermediary method_6947
Lnet/minecraft/class_1536;method_6947()Lnet/minecraft/class_1657;
official m
Lcql;m()Lcpw;
-
getHookedEntity
- Mappings:
Namespace Name Mixin selector named getHookedEntity
Lnet/minecraft/entity/projectile/FishingBobberEntity;getHookedEntity()Lnet/minecraft/entity/Entity;
intermediary method_26957
Lnet/minecraft/class_1536;method_26957()Lnet/minecraft/class_1297;
official s
Lcql;s()Lbvj;
-
canUsePortals
public boolean canUsePortals(boolean allowVehicles) Returns whether the entity can use nether portals and end portals.EnderDragonEntity
,WitherEntity
, andFishingBobberEntity
cannot use portals.- Overrides:
canUsePortals
in classEntity
- Returns:
- whether the entity can use nether portals and end portals
- Mappings:
Namespace Name Mixin selector named canUsePortals
Lnet/minecraft/entity/Entity;canUsePortals(Z)Z
intermediary method_5822
Lnet/minecraft/class_1297;method_5822(Z)Z
official o
Lbvj;o(Z)Z
-
createSpawnPacket
Returns a packet to notify the clients of the entity's spawning.- Overrides:
createSpawnPacket
in 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 createSpawnPacket
Lnet/minecraft/entity/Entity;createSpawnPacket(Lnet/minecraft/server/network/EntityTrackerEntry;)Lnet/minecraft/network/packet/Packet;
intermediary method_18002
Lnet/minecraft/class_1297;method_18002(Lnet/minecraft/class_3231;)Lnet/minecraft/class_2596;
official a
Lbvj;a(Lasf;)Laac;
-
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:
onSpawnPacket
in classProjectileEntity
- Mappings:
Namespace Name Mixin selector named onSpawnPacket
Lnet/minecraft/entity/Entity;onSpawnPacket(Lnet/minecraft/network/packet/s2c/play/EntitySpawnS2CPacket;)V
intermediary method_31471
Lnet/minecraft/class_1297;method_31471(Lnet/minecraft/class_2604;)V
official a
Lbvj;a(Lacs;)V
-