Class WorldshaperItem
java.lang.Object
net.minecraft.world.item.Item
com.simibubi.create.content.equipment.zapper.ZapperItem
com.simibubi.create.content.equipment.zapper.terrainzapper.WorldshaperItem
- All Implemented Interfaces:
CustomArmPoseItem,net.minecraft.world.flag.FeatureElement,net.minecraft.world.level.ItemLike,net.neoforged.neoforge.common.extensions.IItemExtension
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.item.Item
net.minecraft.world.item.Item.Properties, net.minecraft.world.item.Item.TooltipContext -
Field Summary
Fields inherited from class net.minecraft.world.item.Item
ABSOLUTE_MAX_STACK_SIZE, BASE_ATTACK_DAMAGE_ID, BASE_ATTACK_SPEED_ID, BY_BLOCK, canRepair, DEFAULT_MAX_STACK_SIZE, MAX_BAR_WIDTHFields inherited from interface net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanactivate(net.minecraft.world.level.Level level, net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.block.state.BlockState stateToUse, net.minecraft.world.phys.BlockHitResult raytrace, net.minecraft.nbt.CompoundTag data) protected booleancanActivateWithoutSelectedBlock(net.minecraft.world.item.ItemStack stack) static voidconfigureSettings(net.minecraft.world.item.ItemStack stack, PlacementPatterns pattern, TerrainBrushes brush, int brushParamX, int brushParamY, int brushParamZ, TerrainTools tool, PlacementOptions placement) protected intgetCooldownDelay(net.minecraft.world.item.ItemStack item) protected intgetZappingRange(net.minecraft.world.item.ItemStack stack) voidinitializeClient(Consumer<net.neoforged.neoforge.client.extensions.common.IClientItemExtensions> consumer) protected voidopenHandgunGUI(net.minecraft.world.item.ItemStack item, net.minecraft.world.InteractionHand hand) net.minecraft.network.chat.ComponentvalidateUsage(net.minecraft.world.item.ItemStack item) Methods inherited from class com.simibubi.create.content.equipment.zapper.ZapperItem
appendHoverText, canAttackBlock, getArmPose, getUseAnimation, isZapper, onEntitySwing, setBlockEntityData, shouldCauseReequipAnimation, use, useOnMethods inherited from class net.minecraft.world.item.Item
asItem, builtInRegistryHolder, byBlock, byId, canFitInsideContainerItems, components, finishUsingItem, getAttackDamageBonus, getBarColor, getBarWidth, getBreakingSound, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDefaultMaxStackSize, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getEnchantmentValue, getId, getName, getOrCreateDescriptionId, getPlayerPOVHitResult, getTooltipImage, getUseDuration, hasCraftingRemainingItem, hurtEnemy, interactLivingEntity, inventoryTick, isBarVisible, isComplex, isCorrectToolForDrops, isEnchantable, isFoil, isRepairable, isValidRepairItem, mineBlock, modifyDefaultComponentsFrom, onCraftedBy, onCraftedPostProcess, onDestroyed, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, postHurtEnemy, releaseUsing, requiredFeatures, toString, useOnRelease, verifyComponentsAfterLoadMethods 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 net.neoforged.neoforge.common.extensions.IItemExtension
applyEnchantments, canBeHurtBy, canContinueUsing, canDisableShield, canElytraFly, canEquip, canGrindstoneRepair, canPerformAction, canWalkOnPowderedSnow, createEntity, damageItem, doesSneakBypassUse, elytraFlightTick, getAllEnchantments, getArmorTexture, getBurnTime, getCraftingRemainingItem, getCreatorModId, getDamage, getDefaultAttributeModifiers, getEnchantmentLevel, getEnchantmentValue, getEntityLifespan, getEquipmentSlot, getFoodProperties, getHighlightTip, getMaxDamage, getMaxStackSize, getSweepHitBox, getXpRepairRatio, hasCraftingRemainingItem, hasCustomEntity, isBookEnchantable, isDamageable, isDamaged, isEnderMask, isNotReplaceableByPickAction, isPiglinCurrency, isPrimaryItemFor, makesPiglinsNeutral, onAnimalArmorTick, onDestroyed, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onItemUseFirst, onLeftClickEntity, onStopUsing, setDamage, shouldCauseBlockBreakReset, supportsEnchantment
-
Constructor Details
-
WorldshaperItem
public WorldshaperItem(net.minecraft.world.item.Item.Properties properties)
-
-
Method Details
-
initializeClient
public void initializeClient(Consumer<net.neoforged.neoforge.client.extensions.common.IClientItemExtensions> consumer) - Overrides:
initializeClientin classnet.minecraft.world.item.Item
-
openHandgunGUI
protected void openHandgunGUI(net.minecraft.world.item.ItemStack item, net.minecraft.world.InteractionHand hand) - Specified by:
openHandgunGUIin classZapperItem
-
getZappingRange
protected int getZappingRange(net.minecraft.world.item.ItemStack stack) - Specified by:
getZappingRangein classZapperItem
-
getCooldownDelay
protected int getCooldownDelay(net.minecraft.world.item.ItemStack item) - Specified by:
getCooldownDelayin classZapperItem
-
validateUsage
public net.minecraft.network.chat.Component validateUsage(net.minecraft.world.item.ItemStack item) - Overrides:
validateUsagein classZapperItem
-
canActivateWithoutSelectedBlock
protected boolean canActivateWithoutSelectedBlock(net.minecraft.world.item.ItemStack stack) - Overrides:
canActivateWithoutSelectedBlockin classZapperItem
-
activate
protected boolean activate(net.minecraft.world.level.Level level, net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.block.state.BlockState stateToUse, net.minecraft.world.phys.BlockHitResult raytrace, net.minecraft.nbt.CompoundTag data) - Specified by:
activatein classZapperItem
-
configureSettings
public static void configureSettings(net.minecraft.world.item.ItemStack stack, PlacementPatterns pattern, TerrainBrushes brush, int brushParamX, int brushParamY, int brushParamZ, TerrainTools tool, PlacementOptions placement)
-