Class ItemSlate
java.lang.Object
net.minecraft.world.item.Item
net.minecraft.world.item.BlockItem
at.petrak.hexcasting.common.items.storage.ItemSlate
- All Implemented Interfaces:
IotaHolderItem,net.minecraft.world.flag.FeatureElement,net.minecraft.world.level.ItemLike
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.item.Item
net.minecraft.world.item.Item.Properties -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.resources.ResourceLocationFields inherited from class net.minecraft.world.item.BlockItem
BLOCK_ENTITY_TAG, BLOCK_STATE_TAGFields inherited from class net.minecraft.world.item.Item
BASE_ATTACK_DAMAGE_UUID, BASE_ATTACK_SPEED_UUID, BY_BLOCK, EAT_DURATION, MAX_BAR_WIDTH, MAX_STACK_SIZEFields inherited from interface net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIESFields inherited from interface at.petrak.hexcasting.api.item.IotaHolderItem
TAG_OVERRIDE_VISUALLY -
Constructor Summary
ConstructorsConstructorDescriptionItemSlate(net.minecraft.world.level.block.Block pBlock, net.minecraft.world.item.Item.Properties pProperties) -
Method Summary
Modifier and TypeMethodDescriptionbooleanWritenullto indicate erasingnet.minecraft.network.chat.ComponentgetName(net.minecraft.world.item.ItemStack pStack) static Optional<at.petrak.hexcasting.api.casting.math.HexPattern>getPattern(net.minecraft.world.item.ItemStack stack) Optional<net.minecraft.world.inventory.tooltip.TooltipComponent>getTooltipImage(net.minecraft.world.item.ItemStack stack) static booleanhasPattern(net.minecraft.world.item.ItemStack stack) voidinventoryTick(net.minecraft.world.item.ItemStack pStack, net.minecraft.world.level.Level pLevel, net.minecraft.world.entity.Entity pEntity, int pSlotId, boolean pIsSelected) booleanonEntityItemUpdate(net.minecraft.world.item.ItemStack stack, net.minecraft.world.entity.item.ItemEntity entity) @Nullable net.minecraft.nbt.CompoundTagreadIotaTag(net.minecraft.world.item.ItemStack stack) booleanwriteable(net.minecraft.world.item.ItemStack stack) voidwriteDatum(net.minecraft.world.item.ItemStack stack, Iota datum) Writenullto indicate erasingMethods inherited from class net.minecraft.world.item.BlockItem
appendHoverText, canFitInsideContainerItems, canPlace, getBlock, getBlockEntityData, getDescriptionId, getPlacementState, getPlaceSound, mustSurvive, onDestroyed, place, placeBlock, registerBlocks, requiredFeatures, setBlockEntityData, updateCustomBlockEntityTag, updateCustomBlockEntityTag, updatePlacementContext, useOnMethods inherited from class net.minecraft.world.item.Item
asItem, builtInRegistryHolder, byBlock, byId, canAttackBlock, canBeDepleted, canBeHurtBy, finishUsingItem, getBarColor, getBarWidth, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDescription, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getEnchantmentValue, getFoodProperties, getId, getMaxDamage, getMaxStackSize, getOrCreateDescriptionId, getPlayerPOVHitResult, getRarity, getUseAnimation, getUseDuration, hasCraftingRemainingItem, hurtEnemy, interactLivingEntity, isBarVisible, isComplex, isCorrectToolForDrops, isEdible, isEnchantable, isFireResistant, isFoil, isValidRepairItem, mineBlock, onCraftedBy, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, releaseUsing, shouldOverrideMultiplayerNbt, toString, use, useOnRelease, verifyTagAfterLoadMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.flag.FeatureElement
isEnabledMethods inherited from interface at.petrak.hexcasting.api.item.IotaHolderItem
emptyIota, getColor, readIota
-
Field Details
-
WRITTEN_PRED
public static final net.minecraft.resources.ResourceLocation WRITTEN_PRED
-
-
Constructor Details
-
ItemSlate
public ItemSlate(net.minecraft.world.level.block.Block pBlock, net.minecraft.world.item.Item.Properties pProperties)
-
-
Method Details
-
getName
public net.minecraft.network.chat.Component getName(net.minecraft.world.item.ItemStack pStack) - Overrides:
getNamein classnet.minecraft.world.item.Item
-
getPattern
public static Optional<at.petrak.hexcasting.api.casting.math.HexPattern> getPattern(net.minecraft.world.item.ItemStack stack) -
hasPattern
public static boolean hasPattern(net.minecraft.world.item.ItemStack stack) -
onEntityItemUpdate
public boolean onEntityItemUpdate(net.minecraft.world.item.ItemStack stack, net.minecraft.world.entity.item.ItemEntity entity) -
inventoryTick
public void inventoryTick(net.minecraft.world.item.ItemStack pStack, net.minecraft.world.level.Level pLevel, net.minecraft.world.entity.Entity pEntity, int pSlotId, boolean pIsSelected) - Overrides:
inventoryTickin classnet.minecraft.world.item.Item
-
readIotaTag
@Nullable public @Nullable net.minecraft.nbt.CompoundTag readIotaTag(net.minecraft.world.item.ItemStack stack) - Specified by:
readIotaTagin interfaceIotaHolderItem
-
writeable
public boolean writeable(net.minecraft.world.item.ItemStack stack) - Specified by:
writeablein interfaceIotaHolderItem- Returns:
- whether it is possible to write to this IotaHolder
-
canWrite
Description copied from interface:IotaHolderItemWritenullto indicate erasing- Specified by:
canWritein interfaceIotaHolderItem
-
writeDatum
Description copied from interface:IotaHolderItemWritenullto indicate erasing- Specified by:
writeDatumin interfaceIotaHolderItem
-
getTooltipImage
public Optional<net.minecraft.world.inventory.tooltip.TooltipComponent> getTooltipImage(net.minecraft.world.item.ItemStack stack) - Overrides:
getTooltipImagein classnet.minecraft.world.item.Item
-