public class DecorationItem extends Item
Item.Settings| Modifier and Type | Field and Description |
|---|---|
private EntityType<? extends AbstractDecorationEntity> |
entityType |
ATTACK_DAMAGE_MODIFIER_UUID, ATTACK_SPEED_MODIFIER_UUID, BLOCK_ITEMS, group, RANDOM| Constructor and Description |
|---|
DecorationItem(EntityType<? extends AbstractDecorationEntity> type,
Item.Settings settings) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canPlaceOn(PlayerEntity player,
Direction side,
ItemStack stack,
BlockPos pos) |
ActionResult |
useOnBlock(ItemUsageContext context) |
addPropertyGetter, appendStacks, appendTooltip, asItem, byRawId, canMine, canRepair, damage, finishUsing, fromBlock, getDrinkSound, getEatSound, getEnchantability, getFoodComponent, getGroup, getMaxCount, getMaxDamage, getMaxUseTime, getMiningSpeedMultiplier, getModifiers, getName, getName, getOrCreateTranslationKey, getPropertyGetter, getRarity, getRawId, getRecipeRemainder, getStackForRender, getTranslationKey, getTranslationKey, getUseAction, hasEnchantmentGlint, hasPropertyGetters, hasRecipeRemainder, inventoryTick, isDamageable, isEffectiveOn, isEnchantable, isFireproof, isFood, isIn, isIn, isNetworkSynced, isUsedOnRelease, onCraft, onStoppedUsing, postHit, postMine, postProcessTag, rayTrace, shouldSyncTagToClient, toString, usageTick, use, useOnEntityprivate final EntityType<? extends AbstractDecorationEntity> entityType
public DecorationItem(EntityType<? extends AbstractDecorationEntity> type, Item.Settings settings)
public ActionResult useOnBlock(ItemUsageContext context)
useOnBlock in class Itemprotected boolean canPlaceOn(PlayerEntity player, Direction side, ItemStack stack, BlockPos pos)