类 SnowGolem

所有已实现的接口:
CommandSource, Attackable, RangedAttackMob, Shearable, Targeting, EntityAccess, Nameable, ICapabilityProvider, ICapabilityProviderImpl<Entity>, ICapabilitySerializable<CompoundTag>, IForgeEntity, IForgeLivingEntity, IForgeShearable, INBTSerializable<CompoundTag>

public class SnowGolem extends AbstractGolem implements Shearable, RangedAttackMob, IForgeShearable
  • 字段详细资料

  • 构造器详细资料

  • 方法详细资料

    • registerGoals

      protected void registerGoals()
      覆盖:
      registerGoals 在类中 Mob
    • createAttributes

      public static AttributeSupplier.Builder createAttributes()
    • defineSynchedData

      protected void defineSynchedData()
      覆盖:
      defineSynchedData 在类中 Mob
    • addAdditionalSaveData

      public void addAdditionalSaveData(CompoundTag pCompound)
      覆盖:
      addAdditionalSaveData 在类中 Mob
    • readAdditionalSaveData

      public void readAdditionalSaveData(CompoundTag pCompound)
      覆盖:
      readAdditionalSaveData 在类中 Mob
    • isSensitiveToWater

      public boolean isSensitiveToWater()
      覆盖:
      isSensitiveToWater 在类中 LivingEntity
    • aiStep

      public void aiStep()
      覆盖:
      aiStep 在类中 Mob
    • performRangedAttack

      public void performRangedAttack(LivingEntity pTarget, float pDistanceFactor)
      指定者:
      performRangedAttack 在接口中 RangedAttackMob
    • getStandingEyeHeight

      protected float getStandingEyeHeight(Pose pPose, EntityDimensions pSize)
      覆盖:
      getStandingEyeHeight 在类中 LivingEntity
    • mobInteract

      protected InteractionResult mobInteract(Player pPlayer, InteractionHand pHand)
      覆盖:
      mobInteract 在类中 Mob
    • shear

      public void shear(SoundSource pCategory)
      指定者:
      shear 在接口中 Shearable
    • readyForShearing

      public boolean readyForShearing()
      指定者:
      readyForShearing 在接口中 Shearable
    • hasPumpkin

      public boolean hasPumpkin()
    • setPumpkin

      public void setPumpkin(boolean pPumpkinEquipped)
    • getAmbientSound

      @Nullable protected SoundEvent getAmbientSound()
      覆盖:
      getAmbientSound 在类中 AbstractGolem
    • getHurtSound

      @Nullable protected SoundEvent getHurtSound(DamageSource pDamageSource)
      覆盖:
      getHurtSound 在类中 AbstractGolem
    • getDeathSound

      @Nullable protected SoundEvent getDeathSound()
      覆盖:
      getDeathSound 在类中 AbstractGolem
    • getLeashOffset

      public Vec3 getLeashOffset()
      覆盖:
      getLeashOffset 在类中 Entity
    • isShearable

      public boolean isShearable(@NotNull @NotNull ItemStack item, Level world, BlockPos pos)
      从接口复制的说明: IForgeShearable
      Checks if the object is currently shearable Example: Sheep return false when they have no wool
      指定者:
      isShearable 在接口中 IForgeShearable
      参数:
      item - The ItemStack that is being used, may be empty.
      world - The current level.
      pos - Block's position in level.
      返回:
      If this is shearable, and onSheared should be called.
    • onSheared

      @NotNull public List<ItemStack> onSheared(@Nullable Player player, @NotNull @NotNull ItemStack item, Level world, BlockPos pos, int fortune)
      从接口复制的说明: IForgeShearable
      Performs the shear function on this object. This is called for both client, and server. The object should perform all actions related to being sheared, except for dropping of the items, and removal of the block. As those are handled by ItemShears itself. Returns a list of items that resulted from the shearing process. For entities, they should trust there internal location information over the values passed into this function.
      指定者:
      onSheared 在接口中 IForgeShearable
      item - The ItemStack that is being used, may be empty.
      world - The current level.
      pos - If this is a block, the block's position in level.
      fortune - The fortune level of the shears being used.
      返回:
      A List containing all items from this shearing. May be empty.