Class IEntityTarget.BuiltIn

java.lang.Object
com.petrolpark.core.data.IEntityTarget.BuiltIn
All Implemented Interfaces:
IEntityTarget, net.minecraft.util.StringRepresentable
Enclosing interface:
IEntityTarget

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

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

    IEntityTarget.BuiltIn, IEntityTarget.Custom, 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.LootContext.EntityTarget
     

    Fields inherited from interface com.petrolpark.core.data.IEntityTarget

    CODEC, CONTEXT_THIS, CUSTOM

    Fields inherited from interface net.minecraft.util.StringRepresentable

    PRE_BUILT_MAP_THRESHOLD
  • Constructor Summary

    Constructors
    Constructor
    Description
    BuiltIn(net.minecraft.world.level.storage.loot.LootContext.EntityTarget target)
     
  • 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
     
    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

    • target

      public final net.minecraft.world.level.storage.loot.LootContext.EntityTarget target
  • Constructor Details

    • BuiltIn

      public BuiltIn(net.minecraft.world.level.storage.loot.LootContext.EntityTarget target)
  • 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 net.minecraft.world.level.storage.loot.parameters.LootContextParam<? extends net.minecraft.world.entity.Entity> getReferencedParam()
      Specified by:
      getReferencedParam in interface IEntityTarget