public class ItemSemiBlock
extends net.minecraft.item.Item
| Constructor and Description |
|---|
ItemSemiBlock() |
| Modifier and Type | Method and Description |
|---|---|
EntitySemiblockBase |
createEntity(net.minecraft.world.World world,
net.minecraft.item.ItemStack stack,
net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.math.BlockPos pos)
Create a semiblock entity from the given itemstack, loading any saved NBT into the entity.
|
net.minecraft.util.ActionResultType |
onItemUseFirst(net.minecraft.item.ItemStack stack,
net.minecraft.item.ItemUseContext context) |
net.minecraft.util.ActionResultType |
useOn(net.minecraft.item.ItemUseContext context) |
allowdedIn, appendHoverText, asItem, byBlock, byId, canAttackBlock, canBeDepleted, canBeHurtBy, fillItemCategory, finishUsingItem, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getEnchantmentValue, getFoodProperties, getHarvestLevel, getId, getItemCategory, getItemStackTileEntityRenderer, getMaxDamage, getMaxStackSize, getName, getOrCreateDescriptionId, getPlayerPOVHitResult, getRarity, getTags, getToolTypes, getUseAnimation, getUseDuration, hasCraftingRemainingItem, hurtEnemy, interactLivingEntity, inventoryTick, is, isComplex, isCorrectToolForDrops, isEdible, isEnchantable, isFireResistant, isFoil, isRepairable, isValidRepairItem, mineBlock, onCraftedBy, onUseTick, releaseUsing, shouldOverrideMultiplayerNbt, toString, use, useOnRelease, verifyTagAfterLoadgetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcanApplyAtEnchantingTable, canContinueUsing, canDisableShield, canElytraFly, canEquip, canHarvestBlock, createEntity, damageItem, doesSneakBypassUse, elytraFlightTick, getArmorModel, getArmorTexture, getAttributeModifiers, getBurnTime, getBurnTime, getContainerItem, getCreativeTabs, getCreatorModId, getDamage, getDurabilityForDisplay, getEntityLifespan, getEquipmentSlot, getFontRenderer, getHighlightTip, getItem, getItemEnchantability, getItemStackLimit, getMaxDamage, getRGBDurabilityForDisplay, getShareTag, getSmeltingExperience, getXpRepairRatio, hasContainerItem, hasCustomEntity, initCapabilities, isBookEnchantable, isDamageable, isDamaged, isEnderMask, isPiglinCurrency, isShield, makesPiglinsNeutral, onArmorTick, onBlockStartBreak, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, onLeftClickEntity, onUsingTick, readShareTag, renderHelmetOverlay, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimation, showDurabilityBarpublic net.minecraft.util.ActionResultType onItemUseFirst(net.minecraft.item.ItemStack stack,
net.minecraft.item.ItemUseContext context)
public net.minecraft.util.ActionResultType useOn(net.minecraft.item.ItemUseContext context)
useOn in class net.minecraft.item.Itempublic EntitySemiblockBase createEntity(net.minecraft.world.World world, net.minecraft.item.ItemStack stack, net.minecraft.entity.player.PlayerEntity player, net.minecraft.util.math.BlockPos pos)
world - the worldstack - the itemplayer - player, may be nullpos - block the entity will be placed at (pass BlockPos.ZERO) if you don't plan to add the entity to the world