Class IEntityTarget.Custom

java.lang.Object
petrolpark.mc.library.core.data.IEntityTarget.Custom
All Implemented Interfaces:
net.minecraft.util.StringRepresentable, IEntityTarget
Enclosing interface:
IEntityTarget

public static class IEntityTarget.Custom extends Object implements IEntityTarget
  • Nested Class Summary

    Nested classes/interfaces inherited from interface petrolpark.mc.library.core.data.IEntityTarget

    IEntityTarget.BuiltIn, IEntityTarget.Custom, IEntityTarget.None, IEntityTarget.Targets

    Nested classes/interfaces inherited from interface net.minecraft.util.StringRepresentable

    net.minecraft.util.StringRepresentable.EnumCodec<E extends Enum<E> & net.minecraft.util.StringRepresentable>, net.minecraft.util.StringRepresentable.StringRepresentableCodec<S extends net.minecraft.util.StringRepresentable>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final net.minecraft.world.level.storage.loot.parameters.LootContextParam<? extends net.minecraft.world.entity.Entity>
     

    Fields inherited from interface petrolpark.mc.library.core.data.IEntityTarget

    CODEC, CONTEXT_THIS, CUSTOM, NONE, STREAM_CODEC, STRICT_CODEC

    Fields inherited from interface net.minecraft.util.StringRepresentable

    PRE_BUILT_MAP_THRESHOLD
  • Constructor Summary

    Constructors
    Constructor
    Description
    Custom(net.minecraft.world.level.storage.loot.parameters.LootContextParam<? extends net.minecraft.world.entity.Entity> param)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.entity.Entity
    get(net.minecraft.world.level.storage.loot.LootContext context)
     
    net.minecraft.network.chat.Component
     
    Set<net.minecraft.world.level.storage.loot.parameters.LootContextParam<? extends net.minecraft.world.entity.Entity>>
     
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • param

      public final net.minecraft.world.level.storage.loot.parameters.LootContextParam<? extends net.minecraft.world.entity.Entity> param
  • Constructor Details

    • Custom

      public Custom(net.minecraft.world.level.storage.loot.parameters.LootContextParam<? extends net.minecraft.world.entity.Entity> param)
  • Method Details

    • get

      public net.minecraft.world.entity.Entity get(net.minecraft.world.level.storage.loot.LootContext context)
      Specified by:
      get in interface IEntityTarget
    • getName

      public net.minecraft.network.chat.Component getName()
      Specified by:
      getName in interface IEntityTarget
    • getSerializedName

      public String getSerializedName()
      Specified by:
      getSerializedName in interface net.minecraft.util.StringRepresentable
    • getReferencedParam

      public Set<net.minecraft.world.level.storage.loot.parameters.LootContextParam<? extends net.minecraft.world.entity.Entity>> getReferencedParam()
      Specified by:
      getReferencedParam in interface IEntityTarget