Class EntityTagIngredient
java.lang.Object
at.petrak.hexcasting.common.recipe.ingredient.brainsweep.BrainsweepeeIngredient
at.petrak.hexcasting.common.recipe.ingredient.brainsweep.EntityTagIngredient
-
Nested Class Summary
Nested classes/interfaces inherited from class at.petrak.hexcasting.common.recipe.ingredient.brainsweep.BrainsweepeeIngredient
BrainsweepeeIngredient.Type -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal net.minecraft.tags.TagKey<net.minecraft.world.entity.EntityType<?>> -
Constructor Summary
ConstructorsConstructorDescriptionEntityTagIngredient(net.minecraft.tags.TagKey<net.minecraft.world.entity.EntityType<?>> tag) -
Method Summary
Modifier and TypeMethodDescriptionstatic EntityTagIngredientdeserialize(com.google.gson.JsonObject obj) booleannet.minecraft.world.entity.EntityexampleEntity(net.minecraft.world.level.Level level) For the benefit of showing to the client, return an example of the entity.net.minecraft.network.chat.ComponentgetName()List<net.minecraft.network.chat.Component>getTooltip(boolean advanced) inthashCode()ingrType()static EntityTagIngredientread(net.minecraft.network.FriendlyByteBuf buf) com.google.gson.JsonObjectbooleantest(net.minecraft.world.entity.Entity entity, net.minecraft.server.level.ServerLevel level) voidwrite(net.minecraft.network.FriendlyByteBuf buf) Methods inherited from class at.petrak.hexcasting.common.recipe.ingredient.brainsweep.BrainsweepeeIngredient
getModNameComponent, wrapWrite
-
Field Details
-
entityTypeTag
public final net.minecraft.tags.TagKey<net.minecraft.world.entity.EntityType<?>> entityTypeTag
-
-
Constructor Details
-
EntityTagIngredient
public EntityTagIngredient(net.minecraft.tags.TagKey<net.minecraft.world.entity.EntityType<?>> tag)
-
-
Method Details
-
test
public boolean test(net.minecraft.world.entity.Entity entity, net.minecraft.server.level.ServerLevel level) - Specified by:
testin classBrainsweepeeIngredient
-
getName
public net.minecraft.network.chat.Component getName()- Specified by:
getNamein classBrainsweepeeIngredient
-
getTooltip
- Specified by:
getTooltipin classBrainsweepeeIngredient
-
exampleEntity
public net.minecraft.world.entity.Entity exampleEntity(net.minecraft.world.level.Level level) Description copied from class:BrainsweepeeIngredientFor the benefit of showing to the client, return an example of the entity.Can return null in case someone did something stupid with a recipe
- Specified by:
exampleEntityin classBrainsweepeeIngredient
-
serialize
public com.google.gson.JsonObject serialize()- Specified by:
serializein classBrainsweepeeIngredient
-
write
public void write(net.minecraft.network.FriendlyByteBuf buf) - Specified by:
writein classBrainsweepeeIngredient
-
deserialize
-
read
-
ingrType
- Specified by:
ingrTypein classBrainsweepeeIngredient
-
getSomeKindOfReasonableIDForEmi
- Specified by:
getSomeKindOfReasonableIDForEmiin classBrainsweepeeIngredient
-
equals
-
hashCode
public int hashCode()
-