Class LashingPotatoHookEntity

All Implemented Interfaces:
DataTracked, Ownable, ScoreHolder, CommandOutput, Nameable, EntityLike

public class LashingPotatoHookEntity extends ProjectileEntity
Mappings:
Namespace Name
official cmq
intermediary net/minecraft/class_9508
named net/minecraft/entity/projectile/LashingPotatoHookEntity
  • Field Details

    • IN_BLOCK

      public static final TrackedData<Boolean> IN_BLOCK
      Mappings:
      Namespace Name Mixin selector
      official b Lcmq;b:Lajy;
      intermediary field_50485 Lnet/minecraft/class_9508;field_50485:Lnet/minecraft/class_2940;
      named IN_BLOCK Lnet/minecraft/entity/projectile/LashingPotatoHookEntity;IN_BLOCK:Lnet/minecraft/entity/data/TrackedData;
    • LENGTH

      public static final TrackedData<Float> LENGTH
      Mappings:
      Namespace Name Mixin selector
      official c Lcmq;c:Lajy;
      intermediary field_50486 Lnet/minecraft/class_9508;field_50486:Lnet/minecraft/class_2940;
      named LENGTH Lnet/minecraft/entity/projectile/LashingPotatoHookEntity;LENGTH:Lnet/minecraft/entity/data/TrackedData;
    • field_50487

      private static final float field_50487
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official d Lcmq;d:F
      intermediary field_50487 Lnet/minecraft/class_9508;field_50487:F
      named field_50487 Lnet/minecraft/entity/projectile/LashingPotatoHookEntity;field_50487:F
    • field_50488

      private static final double field_50488
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official e Lcmq;e:D
      intermediary field_50488 Lnet/minecraft/class_9508;field_50488:D
      named field_50488 Lnet/minecraft/entity/projectile/LashingPotatoHookEntity;field_50488:D
  • Constructor Details

    • LashingPotatoHookEntity

      public LashingPotatoHookEntity(EntityType<? extends LashingPotatoHookEntity> type, World world)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbrv;<init>(Lbsb;Ldca;)V
      intermediary <init> Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)V
      named <init> Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
    • LashingPotatoHookEntity

      public LashingPotatoHookEntity(World world, PlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcmq;<init>(Ldca;Lcly;)V
      intermediary <init> Lnet/minecraft/class_9508;<init>(Lnet/minecraft/class_1937;Lnet/minecraft/class_1657;)V
      named <init> Lnet/minecraft/entity/projectile/LashingPotatoHookEntity;<init>(Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;)V
  • Method Details

    • initDataTracker

      protected void initDataTracker(DataTracker.Builder builder)
      Initializes data tracker.
      Specified by:
      initDataTracker in class Entity
      Mappings:
      Namespace Name Mixin selector
      official a Lbrv;a(Lakc$a;)V
      intermediary method_5693 Lnet/minecraft/class_1297;method_5693(Lnet/minecraft/class_2945$class_9222;)V
      named initDataTracker Lnet/minecraft/entity/Entity;initDataTracker(Lnet/minecraft/entity/data/DataTracker$Builder;)V
    • shouldRender

      public boolean shouldRender(double distance)
      Overrides:
      shouldRender in class Entity
      Mappings:
      Namespace Name Mixin selector
      official a Lbrv;a(D)Z
      intermediary method_5640 Lnet/minecraft/class_1297;method_5640(D)Z
      named shouldRender Lnet/minecraft/entity/Entity;shouldRender(D)Z
    • updateTrackedPositionAndAngles

      public void updateTrackedPositionAndAngles(double x, double y, double z, float yaw, float pitch, int interpolationSteps)
      Overrides:
      updateTrackedPositionAndAngles in class Entity
      Mappings:
      Namespace Name Mixin selector
      official a Lbrv;a(DDDFFI)V
      intermediary method_5759 Lnet/minecraft/class_1297;method_5759(DDDFFI)V
      named updateTrackedPositionAndAngles Lnet/minecraft/entity/Entity;updateTrackedPositionAndAngles(DDDFFI)V
    • tick

      public void tick()
      Ticks this entity.
      Overrides:
      tick in class ProjectileEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official l Lbrv;l()V
      intermediary method_5773 Lnet/minecraft/class_1297;method_5773()V
      named tick Lnet/minecraft/entity/Entity;tick()V
    • discardIfInvalid

      private boolean discardIfInvalid(PlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      official a Lcmq;a(Lcly;)Z
      intermediary method_58938 Lnet/minecraft/class_9508;method_58938(Lnet/minecraft/class_1657;)Z
      named discardIfInvalid Lnet/minecraft/entity/projectile/LashingPotatoHookEntity;discardIfInvalid(Lnet/minecraft/entity/player/PlayerEntity;)Z
    • canHit

      protected boolean canHit(Entity entity)
      Overrides:
      canHit in class ProjectileEntity
      Mappings:
      Namespace Name Mixin selector
      official b Lcms;b(Lbrv;)Z
      intermediary method_26958 Lnet/minecraft/class_1676;method_26958(Lnet/minecraft/class_1297;)Z
      named canHit Lnet/minecraft/entity/projectile/ProjectileEntity;canHit(Lnet/minecraft/entity/Entity;)Z
    • onBlockHit

      protected void onBlockHit(BlockHitResult blockHitResult)
      Overrides:
      onBlockHit in class ProjectileEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lcms;a(Lewq;)V
      intermediary method_24920 Lnet/minecraft/class_1676;method_24920(Lnet/minecraft/class_3965;)V
      named onBlockHit Lnet/minecraft/entity/projectile/ProjectileEntity;onBlockHit(Lnet/minecraft/util/hit/BlockHitResult;)V
    • writeCustomDataToNbt

      public void writeCustomDataToNbt(NbtCompound nbt)
      Writes custom data to nbt. 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 class ProjectileEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lbrv;b(Luk;)V
      intermediary method_5652 Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V
      named writeCustomDataToNbt Lnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
    • readCustomDataFromNbt

      public void readCustomDataFromNbt(NbtCompound nbt)
      Reads custom data from nbt. 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 class ProjectileEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbrv;a(Luk;)V
      intermediary method_5749 Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V
      named readCustomDataFromNbt Lnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
    • setInBlock

      private void setInBlock(boolean inBlock)
      Mappings:
      Namespace Name Mixin selector
      official a Lcmq;a(Z)V
      intermediary method_58940 Lnet/minecraft/class_9508;method_58940(Z)V
      named setInBlock Lnet/minecraft/entity/projectile/LashingPotatoHookEntity;setInBlock(Z)V
    • setLength

      private void setLength(float length)
      Mappings:
      Namespace Name Mixin selector
      official a Lcmq;a(F)V
      intermediary method_58937 Lnet/minecraft/class_9508;method_58937(F)V
      named setLength Lnet/minecraft/entity/projectile/LashingPotatoHookEntity;setLength(F)V
    • isInBlock

      public boolean isInBlock()
      Mappings:
      Namespace Name Mixin selector
      official p Lcmq;p()Z
      intermediary method_58941 Lnet/minecraft/class_9508;method_58941()Z
      named isInBlock Lnet/minecraft/entity/projectile/LashingPotatoHookEntity;isInBlock()Z
    • getLength

      public float getLength()
      Mappings:
      Namespace Name Mixin selector
      official r Lcmq;r()F
      intermediary method_58942 Lnet/minecraft/class_9508;method_58942()F
      named getLength Lnet/minecraft/entity/projectile/LashingPotatoHookEntity;getLength()F
    • getMoveEffect

      protected Entity.MoveEffect getMoveEffect()
      Returns the possible effect(s) of an entity moving.
      Overrides:
      getMoveEffect in class Entity
      Mappings:
      Namespace Name Mixin selector
      official bf Lbrv;bf()Lbrv$c;
      intermediary method_33570 Lnet/minecraft/class_1297;method_33570()Lnet/minecraft/class_1297$class_5799;
      named getMoveEffect Lnet/minecraft/entity/Entity;getMoveEffect()Lnet/minecraft/entity/Entity$MoveEffect;
    • remove

      public void remove(Entity.RemovalReason reason)
      Removes the entity.
      Overrides:
      remove in class Entity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbrv;a(Lbrv$d;)V
      intermediary method_5650 Lnet/minecraft/class_1297;method_5650(Lnet/minecraft/class_1297$class_5529;)V
      named remove Lnet/minecraft/entity/Entity;remove(Lnet/minecraft/entity/Entity$RemovalReason;)V
    • onRemoved

      public void onRemoved()
      Called on the client side when the entity is removed.
      Overrides:
      onRemoved in class Entity
      Mappings:
      Namespace Name Mixin selector
      official aq Lbrv;aq()V
      intermediary method_36209 Lnet/minecraft/class_1297;method_36209()V
      named onRemoved Lnet/minecraft/entity/Entity;onRemoved()V
    • setOwner

      public void setOwner(@Nullable @Nullable Entity entity)
      Overrides:
      setOwner in class ProjectileEntity
      Mappings:
      Namespace Name Mixin selector
      official c Lcms;c(Lbrv;)V
      intermediary method_7432 Lnet/minecraft/class_1676;method_7432(Lnet/minecraft/class_1297;)V
      named setOwner Lnet/minecraft/entity/projectile/ProjectileEntity;setOwner(Lnet/minecraft/entity/Entity;)V
    • setHookForPlayer

      private void setHookForPlayer(@Nullable @Nullable LashingPotatoHookEntity lashingPotatoHookEntity)
      Mappings:
      Namespace Name Mixin selector
      official a Lcmq;a(Lcmq;)V
      intermediary method_58939 Lnet/minecraft/class_9508;method_58939(Lnet/minecraft/class_9508;)V
      named setHookForPlayer Lnet/minecraft/entity/projectile/LashingPotatoHookEntity;setHookForPlayer(Lnet/minecraft/entity/projectile/LashingPotatoHookEntity;)V
    • getPlayer

      @Nullable public @Nullable PlayerEntity getPlayer()
      Mappings:
      Namespace Name Mixin selector
      official u Lcmq;u()Lcly;
      intermediary method_58943 Lnet/minecraft/class_9508;method_58943()Lnet/minecraft/class_1657;
      named getPlayer Lnet/minecraft/entity/projectile/LashingPotatoHookEntity;getPlayer()Lnet/minecraft/entity/player/PlayerEntity;
    • canUsePortals

      public boolean canUsePortals()
      Returns whether the entity can use nether portals and end portals.

      EnderDragonEntity, WitherEntity, and FishingBobberEntity cannot use portals.

      Overrides:
      canUsePortals in class Entity
      Returns:
      whether the entity can use nether portals and end portals
      Mappings:
      Namespace Name Mixin selector
      official cB Lbrv;cB()Z
      intermediary method_5822 Lnet/minecraft/class_1297;method_5822()Z
      named canUsePortals Lnet/minecraft/entity/Entity;canUsePortals()Z
    • createSpawnPacket

      public Packet<ClientPlayPacketListener> createSpawnPacket()
      Returns a packet to notify the clients of the entity's spawning.
      Overrides:
      createSpawnPacket in class ProjectileEntity
      Returns:
      a packet to notify the clients of the entity's spawning
      Mappings:
      Namespace Name Mixin selector
      official dq Lbrv;dq()Lzl;
      intermediary method_18002 Lnet/minecraft/class_1297;method_18002()Lnet/minecraft/class_2596;
      named createSpawnPacket Lnet/minecraft/entity/Entity;createSpawnPacket()Lnet/minecraft/network/packet/Packet;
    • onSpawnPacket

      public void onSpawnPacket(EntitySpawnS2CPacket packet)
      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 class ProjectileEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbrv;a(Labx;)V
      intermediary method_31471 Lnet/minecraft/class_1297;method_31471(Lnet/minecraft/class_2604;)V
      named onSpawnPacket Lnet/minecraft/entity/Entity;onSpawnPacket(Lnet/minecraft/network/packet/s2c/play/EntitySpawnS2CPacket;)V