Package petrolpark.mc.library.core.data
Interface IEntityTarget
- All Superinterfaces:
net.minecraft.util.StringRepresentable
- All Known Implementing Classes:
IEntityTarget.BuiltIn,IEntityTarget.Custom,IEntityTarget.None
public interface IEntityTarget
extends net.minecraft.util.StringRepresentable
Extension of vanilla
LootContext.EntityTarget allowing reference to any Entity LootContextParam.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic classstatic classstatic classNested 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 TypeFieldDescriptionstatic final com.mojang.serialization.Codec<IEntityTarget> static final IEntityTargetstatic final Map<net.minecraft.resources.ResourceLocation, net.minecraft.world.level.storage.loot.parameters.LootContextParam<? extends net.minecraft.world.entity.Entity>> static final IEntityTargetstatic final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf, IEntityTarget> static final com.mojang.serialization.Codec<IEntityTarget> Fields inherited from interface net.minecraft.util.StringRepresentable
PRE_BUILT_MAP_THRESHOLD -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.entity.Entityget(net.minecraft.world.level.storage.loot.LootContext context) static IEntityTargetnet.minecraft.network.chat.ComponentgetName()static net.minecraft.network.chat.ComponentgetName(net.minecraft.world.level.storage.loot.parameters.LootContextParam<? extends net.minecraft.world.entity.Entity> param) Set<net.minecraft.world.level.storage.loot.parameters.LootContextParam<? extends net.minecraft.world.entity.Entity>> static voidregister(net.minecraft.world.level.storage.loot.parameters.LootContextParam<? extends net.minecraft.world.entity.Entity> lootContextParam) Methods inherited from interface net.minecraft.util.StringRepresentable
getSerializedName
-
Field Details
-
CUSTOM
static final Map<net.minecraft.resources.ResourceLocation,net.minecraft.world.level.storage.loot.parameters.LootContextParam<? extends net.minecraft.world.entity.Entity>> CUSTOM -
STRICT_CODEC
-
CODEC
-
STREAM_CODEC
static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf,IEntityTarget> STREAM_CODEC -
NONE
-
CONTEXT_THIS
-
-
Method Details
-
register
static void register(net.minecraft.world.level.storage.loot.parameters.LootContextParam<? extends net.minecraft.world.entity.Entity> lootContextParam) -
getName
net.minecraft.network.chat.Component getName() -
getName
static net.minecraft.network.chat.Component getName(net.minecraft.world.level.storage.loot.parameters.LootContextParam<? extends net.minecraft.world.entity.Entity> param) -
get
@Nullable net.minecraft.world.entity.Entity get(net.minecraft.world.level.storage.loot.LootContext context) -
getReferencedParam
Set<net.minecraft.world.level.storage.loot.parameters.LootContextParam<? extends net.minecraft.world.entity.Entity>> getReferencedParam() -
getByName
-