Class FishingBobberEntity
- All Implemented Interfaces:
CommandOutput,Nameable,EntityLike
- Mappings:
Namespace Name official bxrintermediary net/minecraft/class_1536named net/minecraft/entity/projectile/FishingBobberEntity
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static enumprivate static enumNested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.MoveEffect, Entity.PositionUpdater, Entity.RemovalReason -
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 final intprivate intprivate intprivate FishingBobberEntity.Stateprivate final Randomprivate intFields inherited from class net.minecraft.entity.Entity
age, collidedSoftly, dataTracker, DEFAULT_FRICTION, DEFAULT_MIN_FREEZE_DAMAGE_TICKS, DEFAULT_PORTAL_COOLDOWN, distanceTraveled, FALL_FLYING_FLAG_INDEX, fallDistance, field_29991, field_36331, firstUpdate, FLAGS, fluidHeight, FREEZING_DAMAGE_INTERVAL, GLOWING_FLAG_INDEX, horizontalCollision, horizontalSpeed, ID_KEY, ignoreCameraFrustum, inNetherPortal, inPowderSnow, intersectionChecked, lastNetherPortalPosition, lastRenderX, lastRenderY, lastRenderZ, MAX_RIDING_COOLDOWN, MAX_SCOREBOARD_TAGS, MIN_RISING_BUBBLE_COLUMN_SPEED, movementMultiplier, netherPortalTime, noClip, ON_FIRE_FLAG_INDEX, onGround, PASSENGERS_KEY, POSE, prevHorizontalSpeed, prevPitch, prevX, prevY, prevYaw, prevZ, random, ridingCooldown, speed, stepHeight, submergedInWater, timeUntilRegen, touchingWater, uuid, UUID_KEY, uuidString, VELOCITY_AFFECTING_POS_Y_OFFSET, velocityDirty, velocityModified, verticalCollision, wasInPowderSnow, wasOnFire, worldFields inherited from interface net.minecraft.server.command.CommandOutput
DUMMY -
Constructor Summary
ConstructorsModifierConstructorDescriptionFishingBobberEntity(EntityType<? extends FishingBobberEntity> type, World world) privateFishingBobberEntity(EntityType<? extends FishingBobberEntity> type, World world, int luckOfTheSeaLevel, int lureLevel) FishingBobberEntity(PlayerEntity thrower, World world, int luckOfTheSeaLevel, int lureLevel) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanReturns whether the entity can use nether portals and end portals.private voidReturns a packet to notify the clients of the entity's spawning.protected 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 voidInitializes 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) voidReads custom data fromnbt.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) voidupdateTrackedPositionAndAngles(double x, double y, double z, float yaw, float pitch, int interpolationSteps, boolean interpolate) intvoidWrites custom data tonbt.Methods inherited from class net.minecraft.entity.projectile.ProjectileEntity
canModifyAt, getEffectCause, getOwner, isOwner, onCollision, setVelocity, setVelocity, setVelocityClient, updateRotation, updateRotationMethods inherited from class net.minecraft.entity.Entity
addAirTravelEffects, addFlapEffects, addPassenger, addScoreboardTag, addVelocity, addVelocity, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, animateDamage, applyDamageEffects, applyMirror, applyRotation, attemptTickInVoid, baseTick, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundingBox, calculateBoundsForPose, calculateDimensions, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canBeRiddenInWater, canBeSpectated, canExplosionDestroyBlock, canFreeze, canHit, canStartRiding, changeLookDirection, checkBlockCollision, checkDespawn, collidesWith, collidesWithStateAtPos, copyFrom, copyPositionAndRotation, damage, detach, discard, dismountVehicle, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, dropStack, emitGameEvent, emitGameEvent, entityDataRequiresOperator, equals, equipStack, extinguish, extinguishWithSound, fall, getAir, getArmorItems, getBlockPos, getBlockStateAtPos, getBlockX, getBlockY, getBlockZ, getBodyY, getBodyYaw, getBoundingBox, getBrightnessAtEyes, getBurningDuration, getCameraPosVec, getChunkPos, getClientCameraPosVec, getCommandSource, getCustomName, getDataTracker, getDefaultName, getDefaultPortalCooldown, getDimensions, getDisplayName, getEffectiveExplosionResistance, getEntityName, getEntityWorld, getEyeHeight, getEyeHeight, getEyePos, getEyeY, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getHandItems, getHandPosOffset, getHeadYaw, getHeight, getHeightOffset, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getId, getItemsEquipped, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLeashOffset, getLeashOffset, getLeashPos, getLerpedPos, getMaxAir, getMaxNetherPortalTime, getMinFreezeDamageTicks, getMountedHeightOffset, getMovementDirection, getName, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerDismountOffset, getPassengerList, getPassengersDeep, getPermissionLevel, getPickBlockStack, getPistonBehavior, getPitch, getPitch, getPortalRect, getPos, getPose, getPrimaryPassenger, getRandomBodyY, getRemovalReason, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSafeFallDistance, getSavedEntityId, getScoreboardTags, getScoreboardTeam, getServer, getSoundCategory, getSplashSound, getStackReference, getStandingEyeHeight, getSteppingBlockState, getSteppingPos, getSwimHeight, getSwimSound, getSyncedPos, getTargetingMargin, getTeamColorValue, getTeleportTarget, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVelocity, getVelocityAffectingPos, getVelocityMultiplier, getVisibilityBoundingBox, getWidth, getWorld, getX, getY, getYaw, getYaw, getZ, handleAttack, handleFallDamage, hasCollidedSoftly, hasCustomName, hashCode, hasNoGravity, hasPassenger, hasPassenger, hasPassengerDeep, hasPassengers, hasPermissionLevel, hasPlayerRider, hasPortalCooldown, hasPrimaryPassenger, hasVehicle, interact, interactAt, isAlive, isAttackable, isCollidable, isConnectedThroughVehicle, isCrawling, isCustomNameVisible, isDescending, isFireImmune, isFlappingWings, isFrozen, isGlowing, isGlowingLocal, isImmuneToExplosion, isInLava, isInPose, isInRange, isInRange, isInsideWall, isInsideWaterOrBubbleColumn, isInSneakingPose, isInSwimmingPose, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isLiving, isLogicalSideForUpdatingMovement, isOnFire, isOnGround, isPartOf, isPlayer, isPushable, isPushedByFluids, isRegionUnloaded, isRemoved, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSubmergedInWater, isSwimming, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, isWet, kill, limitFallDistance, lookAt, method_48105, method_48155, move, moveToWorld, occludeVibrationSignals, offsetX, offsetZ, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onKilledOther, onLanding, onPassengerLookAround, onPlayerCollision, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, playExtinguishSound, playSound, playSoundIfNotSilent, playStepSound, playSwimSound, populateCrashReport, positionInPortal, pushAwayFrom, pushOutOfBlocks, raycast, readNbt, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, reinitDimensions, removeAllPassengers, removeFromDimension, removePassenger, removeScoreboardTag, requestTeleport, requestTeleportAndDismount, requestTeleportOffset, resetPortalCooldown, resetPosition, saveNbt, saveSelfNbt, scheduleVelocityUpdate, sendMessage, setAir, setBodyYaw, setBoundingBox, setChangeListener, setCustomName, setCustomNameVisible, setFireTicks, setFlag, setFrozenTicks, setGlowing, setHeadYaw, setId, setInNetherPortal, setInPowderSnow, setInvisible, setInvulnerable, setNoGravity, setOnFire, setOnFireFor, setOnFireFromLava, setOnGround, setPitch, setPos, setPose, setPosition, setPosition, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSprinting, setSwimming, setUuid, setVelocity, setVelocity, setYaw, shouldBroadcastConsoleToOps, shouldEscapePowderSnow, shouldReceiveFeedback, shouldRender, shouldRenderName, shouldSave, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTrackOutput, slowMovement, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, startRiding, startRiding, stopRiding, streamPassengersAndSelf, streamSelfAndPassengers, teleport, tickInVoid, tickPortal, tickPortalCooldown, tickRiding, toNbtList, toNbtList, toString, tryCheckBlockCollision, unsetRemoved, updateEventHandler, updateKilledAdvancementCriterion, updateMovementInFluid, updatePassengerForDismount, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSwimming, updateTrackedHeadRotation, updateTrackedPosition, updateVelocity, updateWaterState, wouldPoseNotCollide, writeNbtMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.server.command.CommandOutput
cannotBeSilenced
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official bLbxr;b:Lorg/slf4j/Logger;intermediary field_36336Lnet/minecraft/class_1536;field_36336:Lorg/slf4j/Logger;named LOGGERLnet/minecraft/entity/projectile/FishingBobberEntity;LOGGER:Lorg/slf4j/Logger;
-
field_30665
private static final int field_30665- See Also:
- Mappings:
Namespace Name Mixin selector official fLbxr;f:Iintermediary field_30665Lnet/minecraft/class_1536;field_30665:Inamed field_30665Lnet/minecraft/entity/projectile/FishingBobberEntity;field_30665:I
-
HOOK_ENTITY_ID
- Mappings:
Namespace Name Mixin selector official aoLbxr;ao:Labu;intermediary field_7170Lnet/minecraft/class_1536;field_7170:Lnet/minecraft/class_2940;named HOOK_ENTITY_IDLnet/minecraft/entity/projectile/FishingBobberEntity;HOOK_ENTITY_ID:Lnet/minecraft/entity/data/TrackedData;
-
CAUGHT_FISH
- Mappings:
Namespace Name Mixin selector official apLbxr;ap:Labu;intermediary field_23234Lnet/minecraft/class_1536;field_23234:Lnet/minecraft/class_2940;named CAUGHT_FISHLnet/minecraft/entity/projectile/FishingBobberEntity;CAUGHT_FISH:Lnet/minecraft/entity/data/TrackedData;
-
velocityRandom
- Mappings:
Namespace Name Mixin selector official cLbxr;c:Laos;intermediary field_23231Lnet/minecraft/class_1536;field_23231:Lnet/minecraft/class_5819;named velocityRandomLnet/minecraft/entity/projectile/FishingBobberEntity;velocityRandom:Lnet/minecraft/util/math/random/Random;
-
caughtFish
private boolean caughtFish- Mappings:
Namespace Name Mixin selector official dLbxr;d:Zintermediary field_23232Lnet/minecraft/class_1536;field_23232:Znamed caughtFishLnet/minecraft/entity/projectile/FishingBobberEntity;caughtFish:Z
-
outOfOpenWaterTicks
private int outOfOpenWaterTicks- Mappings:
Namespace Name Mixin selector official eLbxr;e:Iintermediary field_23233Lnet/minecraft/class_1536;field_23233:Inamed outOfOpenWaterTicksLnet/minecraft/entity/projectile/FishingBobberEntity;outOfOpenWaterTicks:I
-
removalTimer
private int removalTimer- Mappings:
Namespace Name Mixin selector official aqLbxr;aq:Iintermediary field_7167Lnet/minecraft/class_1536;field_7167:Inamed removalTimerLnet/minecraft/entity/projectile/FishingBobberEntity;removalTimer:I
-
hookCountdown
private int hookCountdown- Mappings:
Namespace Name Mixin selector official arLbxr;ar:Iintermediary field_7173Lnet/minecraft/class_1536;field_7173:Inamed hookCountdownLnet/minecraft/entity/projectile/FishingBobberEntity;hookCountdown:I
-
waitCountdown
private int waitCountdown- Mappings:
Namespace Name Mixin selector official asLbxr;as:Iintermediary field_7174Lnet/minecraft/class_1536;field_7174:Inamed waitCountdownLnet/minecraft/entity/projectile/FishingBobberEntity;waitCountdown:I
-
fishTravelCountdown
private int fishTravelCountdown- Mappings:
Namespace Name Mixin selector official atLbxr;at:Iintermediary field_7172Lnet/minecraft/class_1536;field_7172:Inamed fishTravelCountdownLnet/minecraft/entity/projectile/FishingBobberEntity;fishTravelCountdown:I
-
fishAngle
private float fishAngle- Mappings:
Namespace Name Mixin selector official auLbxr;au:Fintermediary field_7169Lnet/minecraft/class_1536;field_7169:Fnamed fishAngleLnet/minecraft/entity/projectile/FishingBobberEntity;fishAngle:F
-
inOpenWater
private boolean inOpenWater- Mappings:
Namespace Name Mixin selector official avLbxr;av:Zintermediary field_23134Lnet/minecraft/class_1536;field_23134:Znamed inOpenWaterLnet/minecraft/entity/projectile/FishingBobberEntity;inOpenWater:Z
-
hookedEntity
- Mappings:
Namespace Name Mixin selector official awLbxr;aw:Lbee;intermediary field_7165Lnet/minecraft/class_1536;field_7165:Lnet/minecraft/class_1297;named hookedEntityLnet/minecraft/entity/projectile/FishingBobberEntity;hookedEntity:Lnet/minecraft/entity/Entity;
-
state
- Mappings:
Namespace Name Mixin selector official axLbxr;ax:Lbxr$a;intermediary field_7175Lnet/minecraft/class_1536;field_7175:Lnet/minecraft/class_1536$class_1537;named stateLnet/minecraft/entity/projectile/FishingBobberEntity;state:Lnet/minecraft/entity/projectile/FishingBobberEntity$State;
-
luckOfTheSeaLevel
private final int luckOfTheSeaLevel- Mappings:
Namespace Name Mixin selector official ayLbxr;ay:Iintermediary field_7171Lnet/minecraft/class_1536;field_7171:Inamed luckOfTheSeaLevelLnet/minecraft/entity/projectile/FishingBobberEntity;luckOfTheSeaLevel:I
-
lureLevel
private final int lureLevel- Mappings:
Namespace Name Mixin selector official azLbxr;az:Iintermediary field_7168Lnet/minecraft/class_1536;field_7168:Inamed lureLevelLnet/minecraft/entity/projectile/FishingBobberEntity;lureLevel:I
-
-
Constructor Details
-
FishingBobberEntity
private FishingBobberEntity(EntityType<? extends FishingBobberEntity> type, World world, int luckOfTheSeaLevel, int lureLevel) - Mappings:
Namespace Name Mixin selector official <init>Lbxr;<init>(Lbei;Lckk;II)Vintermediary <init>Lnet/minecraft/class_1536;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;II)Vnamed <init>Lnet/minecraft/entity/projectile/FishingBobberEntity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;II)V
-
FishingBobberEntity
- Mappings:
Namespace Name Mixin selector official <init>Lbee;<init>(Lbei;Lckk;)Vintermediary <init>Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)Vnamed <init>Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
-
FishingBobberEntity
- Mappings:
Namespace Name Mixin selector official <init>Lbxr;<init>(Lbxd;Lckk;II)Vintermediary <init>Lnet/minecraft/class_1536;<init>(Lnet/minecraft/class_1657;Lnet/minecraft/class_1937;II)Vnamed <init>Lnet/minecraft/entity/projectile/FishingBobberEntity;<init>(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/world/World;II)V
-
-
Method Details
-
initDataTracker
protected void initDataTracker()Initializes data tracker.- Specified by:
initDataTrackerin classEntity- Mappings:
Namespace Name Mixin selector official a_Lbee;a_()Vintermediary method_5693Lnet/minecraft/class_1297;method_5693()Vnamed initDataTrackerLnet/minecraft/entity/Entity;initDataTracker()V
-
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.
- Overrides:
onTrackedDataSetin classEntity- Mappings:
Namespace Name Mixin selector official aLbee;a(Labu;)Vintermediary method_5674Lnet/minecraft/class_1297;method_5674(Lnet/minecraft/class_2940;)Vnamed onTrackedDataSetLnet/minecraft/entity/Entity;onTrackedDataSet(Lnet/minecraft/entity/data/TrackedData;)V
-
shouldRender
public boolean shouldRender(double distance) - Overrides:
shouldRenderin classEntity- Mappings:
Namespace Name Mixin selector official aLbee;a(D)Zintermediary method_5640Lnet/minecraft/class_1297;method_5640(D)Znamed shouldRenderLnet/minecraft/entity/Entity;shouldRender(D)Z
-
updateTrackedPositionAndAngles
public void updateTrackedPositionAndAngles(double x, double y, double z, float yaw, float pitch, int interpolationSteps, boolean interpolate) - Overrides:
updateTrackedPositionAndAnglesin classEntity- Mappings:
Namespace Name Mixin selector official aLbee;a(DDDFFIZ)Vintermediary method_5759Lnet/minecraft/class_1297;method_5759(DDDFFIZ)Vnamed updateTrackedPositionAndAnglesLnet/minecraft/entity/Entity;updateTrackedPositionAndAngles(DDDFFIZ)V
-
tick
public void tick()Ticks this entity.- Overrides:
tickin classProjectileEntity- See Also:
- Mappings:
Namespace Name Mixin selector official lLbee;l()Vintermediary method_5773Lnet/minecraft/class_1297;method_5773()Vnamed tickLnet/minecraft/entity/Entity;tick()V
-
removeIfInvalid
- Mappings:
Namespace Name Mixin selector official aLbxr;a(Lbxd;)Zintermediary method_6959Lnet/minecraft/class_1536;method_6959(Lnet/minecraft/class_1657;)Znamed removeIfInvalidLnet/minecraft/entity/projectile/FishingBobberEntity;removeIfInvalid(Lnet/minecraft/entity/player/PlayerEntity;)Z
-
checkForCollision
private void checkForCollision()- Mappings:
Namespace Name Mixin selector official kLbxr;k()Vintermediary method_6958Lnet/minecraft/class_1536;method_6958()Vnamed checkForCollisionLnet/minecraft/entity/projectile/FishingBobberEntity;checkForCollision()V
-
canHit
- Overrides:
canHitin classProjectileEntity- Mappings:
Namespace Name Mixin selector official aLbxv;a(Lbee;)Zintermediary method_26958Lnet/minecraft/class_1676;method_26958(Lnet/minecraft/class_1297;)Znamed canHitLnet/minecraft/entity/projectile/ProjectileEntity;canHit(Lnet/minecraft/entity/Entity;)Z
-
onEntityHit
- Overrides:
onEntityHitin classProjectileEntity- Mappings:
Namespace Name Mixin selector official aLbxv;a(Leap;)Vintermediary method_7454Lnet/minecraft/class_1676;method_7454(Lnet/minecraft/class_3966;)Vnamed onEntityHitLnet/minecraft/entity/projectile/ProjectileEntity;onEntityHit(Lnet/minecraft/util/hit/EntityHitResult;)V
-
onBlockHit
- Overrides:
onBlockHitin classProjectileEntity- Mappings:
Namespace Name Mixin selector official aLbxv;a(Leao;)Vintermediary method_24920Lnet/minecraft/class_1676;method_24920(Lnet/minecraft/class_3965;)Vnamed onBlockHitLnet/minecraft/entity/projectile/ProjectileEntity;onBlockHit(Lnet/minecraft/util/hit/BlockHitResult;)V
-
updateHookedEntityId
- Mappings:
Namespace Name Mixin selector official xLbxr;x(Lbee;)Vintermediary method_6951Lnet/minecraft/class_1536;method_6951(Lnet/minecraft/class_1297;)Vnamed updateHookedEntityIdLnet/minecraft/entity/projectile/FishingBobberEntity;updateHookedEntityId(Lnet/minecraft/entity/Entity;)V
-
tickFishingLogic
- Mappings:
Namespace Name Mixin selector official aLbxr;a(Lgp;)Vintermediary method_6949Lnet/minecraft/class_1536;method_6949(Lnet/minecraft/class_2338;)Vnamed tickFishingLogicLnet/minecraft/entity/projectile/FishingBobberEntity;tickFishingLogic(Lnet/minecraft/util/math/BlockPos;)V
-
isOpenOrWaterAround
- Mappings:
Namespace Name Mixin selector official bLbxr;b(Lgp;)Zintermediary method_26086Lnet/minecraft/class_1536;method_26086(Lnet/minecraft/class_2338;)Znamed isOpenOrWaterAroundLnet/minecraft/entity/projectile/FishingBobberEntity;isOpenOrWaterAround(Lnet/minecraft/util/math/BlockPos;)Z
-
getPositionType
- Mappings:
Namespace Name Mixin selector official aLbxr;a(Lgp;Lgp;)Lbxr$b;intermediary method_26341Lnet/minecraft/class_1536;method_26341(Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;)Lnet/minecraft/class_1536$class_4984;named getPositionTypeLnet/minecraft/entity/projectile/FishingBobberEntity;getPositionType(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/entity/projectile/FishingBobberEntity$PositionType;
-
getPositionType
- Mappings:
Namespace Name Mixin selector official cLbxr;c(Lgp;)Lbxr$b;intermediary method_26342Lnet/minecraft/class_1536;method_26342(Lnet/minecraft/class_2338;)Lnet/minecraft/class_1536$class_4984;named getPositionTypeLnet/minecraft/entity/projectile/FishingBobberEntity;getPositionType(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/entity/projectile/FishingBobberEntity$PositionType;
-
isInOpenWater
public boolean isInOpenWater()- Mappings:
Namespace Name Mixin selector official hLbxr;h()Zintermediary method_26088Lnet/minecraft/class_1536;method_26088()Znamed isInOpenWaterLnet/minecraft/entity/projectile/FishingBobberEntity;isInOpenWater()Z
-
writeCustomDataToNbt
Writes custom data tonbt. Subclasses has 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:
writeCustomDataToNbtin classProjectileEntity- See Also:
- Mappings:
Namespace Name Mixin selector official bLbee;b(Lqp;)Vintermediary method_5652Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)Vnamed writeCustomDataToNbtLnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
readCustomDataFromNbt
Reads custom data fromnbt. Subclasses has 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.
nbtmight 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:
readCustomDataFromNbtin classProjectileEntity- See Also:
- Mappings:
Namespace Name Mixin selector official aLbee;a(Lqp;)Vintermediary method_5749Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)Vnamed readCustomDataFromNbtLnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
use
- Mappings:
Namespace Name Mixin selector official aLbxr;a(Lceh;)Iintermediary method_6957Lnet/minecraft/class_1536;method_6957(Lnet/minecraft/class_1799;)Inamed useLnet/minecraft/entity/projectile/FishingBobberEntity;use(Lnet/minecraft/item/ItemStack;)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:
- Mappings:
Namespace Name Mixin selector official aLbee;a(B)Vintermediary method_5711Lnet/minecraft/class_1297;method_5711(B)Vnamed handleStatusLnet/minecraft/entity/Entity;handleStatus(B)V
-
pullHookedEntity
- Mappings:
Namespace Name Mixin selector official cLbxr;c(Lbee;)Vintermediary method_6954Lnet/minecraft/class_1536;method_6954(Lnet/minecraft/class_1297;)Vnamed pullHookedEntityLnet/minecraft/entity/projectile/FishingBobberEntity;pullHookedEntity(Lnet/minecraft/entity/Entity;)V
-
getMoveEffect
Returns the possible effect(s) of an entity moving.- Overrides:
getMoveEffectin classEntity- Mappings:
Namespace Name Mixin selector official aSLbee;aS()Lbee$b;intermediary method_33570Lnet/minecraft/class_1297;method_33570()Lnet/minecraft/class_1297$class_5799;named getMoveEffectLnet/minecraft/entity/Entity;getMoveEffect()Lnet/minecraft/entity/Entity$MoveEffect;
-
remove
Removes the entity.- Overrides:
removein classEntity- See Also:
- Mappings:
Namespace Name Mixin selector official aLbee;a(Lbee$c;)Vintermediary method_5650Lnet/minecraft/class_1297;method_5650(Lnet/minecraft/class_1297$class_5529;)Vnamed removeLnet/minecraft/entity/Entity;remove(Lnet/minecraft/entity/Entity$RemovalReason;)V
-
onRemoved
public void onRemoved()Called on the client side when the entity is removed. -
setOwner
- Overrides:
setOwnerin classProjectileEntity- Mappings:
Namespace Name Mixin selector official bLbxv;b(Lbee;)Vintermediary method_7432Lnet/minecraft/class_1676;method_7432(Lnet/minecraft/class_1297;)Vnamed setOwnerLnet/minecraft/entity/projectile/ProjectileEntity;setOwner(Lnet/minecraft/entity/Entity;)V
-
setPlayerFishHook
- Mappings:
Namespace Name Mixin selector official aLbxr;a(Lbxr;)Vintermediary method_36210Lnet/minecraft/class_1536;method_36210(Lnet/minecraft/class_1536;)Vnamed setPlayerFishHookLnet/minecraft/entity/projectile/FishingBobberEntity;setPlayerFishHook(Lnet/minecraft/entity/projectile/FishingBobberEntity;)V
-
getPlayerOwner
- Mappings:
Namespace Name Mixin selector official iLbxr;i()Lbxd;intermediary method_6947Lnet/minecraft/class_1536;method_6947()Lnet/minecraft/class_1657;named getPlayerOwnerLnet/minecraft/entity/projectile/FishingBobberEntity;getPlayerOwner()Lnet/minecraft/entity/player/PlayerEntity;
-
getHookedEntity
- Mappings:
Namespace Name Mixin selector official jLbxr;j()Lbee;intermediary method_26957Lnet/minecraft/class_1536;method_26957()Lnet/minecraft/class_1297;named getHookedEntityLnet/minecraft/entity/projectile/FishingBobberEntity;getHookedEntity()Lnet/minecraft/entity/Entity;
-
canUsePortals
public boolean canUsePortals()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 official cnLbee;cn()Zintermediary method_5822Lnet/minecraft/class_1297;method_5822()Znamed canUsePortalsLnet/minecraft/entity/Entity;canUsePortals()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
- Mappings:
Namespace Name Mixin selector official TLbee;T()Lum;intermediary method_18002Lnet/minecraft/class_1297;method_18002()Lnet/minecraft/class_2596;named createSpawnPacketLnet/minecraft/entity/Entity;createSpawnPacket()Lnet/minecraft/network/Packet;
-
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 official aLbee;a(Luq;)Vintermediary method_31471Lnet/minecraft/class_1297;method_31471(Lnet/minecraft/class_2604;)Vnamed onSpawnPacketLnet/minecraft/entity/Entity;onSpawnPacket(Lnet/minecraft/network/packet/s2c/play/EntitySpawnS2CPacket;)V
-