Package com.petrolpark.core.data
Class IEntityTarget.BuiltIn
java.lang.Object
com.petrolpark.core.data.IEntityTarget.BuiltIn
- All Implemented Interfaces:
IEntityTarget,net.minecraft.util.StringRepresentable
- Enclosing interface:
IEntityTarget
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.petrolpark.core.data.IEntityTarget
IEntityTarget.BuiltIn, IEntityTarget.Custom, IEntityTarget.TargetsNested 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
FieldsModifier and TypeFieldDescriptionfinal net.minecraft.world.level.storage.loot.LootContext.EntityTargetFields inherited from interface com.petrolpark.core.data.IEntityTarget
CODEC, CONTEXT_THIS, CUSTOMFields inherited from interface net.minecraft.util.StringRepresentable
PRE_BUILT_MAP_THRESHOLD -
Constructor Summary
ConstructorsConstructorDescriptionBuiltIn(net.minecraft.world.level.storage.loot.LootContext.EntityTarget target) -
Method Summary
-
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:
getin interfaceIEntityTarget
-
getName
public net.minecraft.network.chat.Component getName()- Specified by:
getNamein interfaceIEntityTarget
-
getSerializedName
- Specified by:
getSerializedNamein interfacenet.minecraft.util.StringRepresentable
-
getReferencedParam
public net.minecraft.world.level.storage.loot.parameters.LootContextParam<? extends net.minecraft.world.entity.Entity> getReferencedParam()- Specified by:
getReferencedParamin interfaceIEntityTarget
-