Class VineProjectileEntity

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

public class VineProjectileEntity extends ExplosiveProjectileEntity
Mappings:
Namespace Name
official cng
intermediary net/minecraft/class_9509
named net/minecraft/entity/projectile/VineProjectileEntity
  • Field Details

    • POISONOUS_POTATO

      private static final ItemStack POISONOUS_POTATO
      Mappings:
      Namespace Name Mixin selector
      official e Lcng;e:Lcuh;
      intermediary field_50489 Lnet/minecraft/class_9509;field_50489:Lnet/minecraft/class_1799;
      named POISONOUS_POTATO Lnet/minecraft/entity/projectile/VineProjectileEntity;POISONOUS_POTATO:Lnet/minecraft/item/ItemStack;
    • STRENGTH

      private static final TrackedData<Float> STRENGTH
      Mappings:
      Namespace Name Mixin selector
      official g Lcng;g:Lajy;
      intermediary field_50490 Lnet/minecraft/class_9509;field_50490:Lnet/minecraft/class_2940;
      named STRENGTH Lnet/minecraft/entity/projectile/VineProjectileEntity;STRENGTH:Lnet/minecraft/entity/data/TrackedData;
    • lifetime

      private int lifetime
      Mappings:
      Namespace Name Mixin selector
      official h Lcng;h:I
      intermediary field_50491 Lnet/minecraft/class_9509;field_50491:I
      named lifetime Lnet/minecraft/entity/projectile/VineProjectileEntity;lifetime:I
  • Constructor Details

    • VineProjectileEntity

      public VineProjectileEntity(EntityType<? extends VineProjectileEntity> 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
  • Method Details

    • initDataTracker

      protected void initDataTracker(DataTracker.Builder builder)
      Initializes data tracker.
      Overrides:
      initDataTracker in class ExplosiveProjectileEntity
      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
    • 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 ExplosiveProjectileEntity
      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 ExplosiveProjectileEntity
      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
    • setStrength

      public void setStrength(float strength)
      Mappings:
      Namespace Name Mixin selector
      official a Lcng;a(F)V
      intermediary method_58944 Lnet/minecraft/class_9509;method_58944(F)V
      named setStrength Lnet/minecraft/entity/projectile/VineProjectileEntity;setStrength(F)V
    • strength

      public float strength()
      Mappings:
      Namespace Name Mixin selector
      official y Lcng;y()F
      intermediary method_58945 Lnet/minecraft/class_9509;method_58945()F
      named strength Lnet/minecraft/entity/projectile/VineProjectileEntity;strength()F
    • tick

      public void tick()
      Ticks this entity.
      Overrides:
      tick in class ExplosiveProjectileEntity
      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
    • onCollision

      protected void onCollision(HitResult hitResult)
      Overrides:
      onCollision in class ProjectileEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lcms;a(Lews;)V
      intermediary method_7488 Lnet/minecraft/class_1676;method_7488(Lnet/minecraft/class_239;)V
      named onCollision Lnet/minecraft/entity/projectile/ProjectileEntity;onCollision(Lnet/minecraft/util/hit/HitResult;)V