Package net.minecraft.block
Class OxidizableCopperGolemStatueBlock
java.lang.Object
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
net.minecraft.block.BlockWithEntity
net.minecraft.block.CopperGolemStatueBlock
net.minecraft.block.OxidizableCopperGolemStatueBlock
- All Implemented Interfaces:
BlockEntityProvider,Degradable<Oxidizable.OxidationLevel>,FluidDrainable,FluidFillable,Oxidizable,Waterloggable,ItemConvertible,ToggleableFeature
- Mappings:
Namespace Name named net/minecraft/block/OxidizableCopperGolemStatueBlockintermediary net/minecraft/class_11593official efd
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.CopperGolemStatueBlock
CopperGolemStatueBlock.PoseNested classes/interfaces inherited from class net.minecraft.block.AbstractBlock
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.Offsetter, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>Nested classes/interfaces inherited from interface net.minecraft.block.Oxidizable
Oxidizable.OxidationLevel -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<OxidizableCopperGolemStatueBlock> Fields inherited from class net.minecraft.block.CopperGolemStatueBlock
FACING, POSE, WATERLOGGEDFields inherited from class net.minecraft.block.Block
field_31023, field_31024, field_31025, FORCE_STATE, FORCE_STATE_AND_SKIP_CALLBACKS_AND_DROPS, MOVED, NO_REDRAW, NOTIFY_ALL, NOTIFY_ALL_AND_REDRAW, NOTIFY_LISTENERS, NOTIFY_NEIGHBORS, REDRAW_ON_MAIN_THREAD, SKIP_BLOCK_ADDED_CALLBACK, SKIP_BLOCK_ENTITY_REPLACED_CALLBACK, SKIP_DROPS, SKIP_REDRAW_AND_BLOCK_ENTITY_REPLACED_CALLBACK, SKIP_REDSTONE_WIRE_STATE_REPLACEMENT, STATE_IDS, stateManagerFields inherited from class net.minecraft.block.AbstractBlock
collidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableKey, randomTicks, requiredFeatures, resistance, settings, slipperiness, soundGroup, translationKey, velocityMultiplierFields inherited from interface net.minecraft.block.Degradable
DEGRADING_RANGEFields inherited from interface net.minecraft.block.Oxidizable
OXIDATION_LEVEL_DECREASES, OXIDATION_LEVEL_INCREASESFields inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
FEATURE_ENABLED_REGISTRY_KEYS -
Constructor Summary
ConstructorsConstructorDescriptionOxidizableCopperGolemStatueBlock(Oxidizable.OxidationLevel oxidationLevel, AbstractBlock.Settings settings) -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec<OxidizableCopperGolemStatueBlock> getCodec()protected booleanhasRandomTicks(BlockState state) protected ActionResultonUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected voidrandomTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.Methods inherited from class net.minecraft.block.CopperGolemStatueBlock
appendProperties, canPathfindThrough, changePose, createBlockEntity, getComparatorOutput, getCullingShape, getFluidState, getOutlineShape, getOxidationLevel, getPickStack, getPlacementState, getStateForNeighborUpdate, hasComparatorOutput, keepBlockEntityWhenReplacedWith, mirror, onStateReplaced, rotateMethods inherited from class net.minecraft.block.BlockWithEntity
createScreenHandlerFactory, onSyncedBlockEvent, validateTickerMethods inherited from class net.minecraft.block.Block
afterBreak, asBlock, asItem, canMobSpawnInside, cannotConnect, createColumnShape, createColumnShape, createCubeShape, createCuboidShape, createCuboidShape, createCuboidZShape, createCuboidZShape, createCuboidZShape, createShapeArray, createShapeFunction, createShapeFunction, dropExperience, dropExperienceWhenMined, dropStack, dropStack, dropStacks, dropStacks, dropStacks, generateBlockInteractLoot, generateLoot, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getRawIdFromState, getRegistryEntry, getSlipperiness, getStateFromRawId, getStateManager, getStateWithProperties, getVelocityMultiplier, hasDynamicBounds, hasTopRim, isFaceFullSquare, isShapeFullCube, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, precipitationTick, pushEntitiesUpBeforeBlockChange, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, spawnBreakParticles, toStringMethods inherited from class net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canPlaceAt, canReplace, createCodec, createSettingsCodec, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getDefaultMapColor, getDroppedStacks, getHardness, getInsideCollisionShape, getLootTableKey, getMaxHorizontalModelOffset, getOpacity, getRaycastShape, getRenderingSeed, getRenderType, getRequiredFeatures, getSettings, getSidesShape, getSoundGroup, getStrongRedstonePower, getTranslationKey, getVerticalModelOffsetMultiplier, getWeakRedstonePower, hasSidedTransparency, isShapeFullCube, isSideInvisible, isTransparent, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onExploded, onProjectileHit, onStacksDropped, onUse, prepare, scheduledTickMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.block.BlockEntityProvider
getGameEventListener, getTickerMethods inherited from interface net.minecraft.block.Degradable
tickDegradation, tryDegradeMethods inherited from interface net.minecraft.block.Oxidizable
getDegradationChanceMultiplier, getDegradationResultMethods inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
isEnabledMethods inherited from interface net.minecraft.block.Waterloggable
canFillWithFluid, getBucketFillSound, tryDrainFluid, tryFillWithFluid
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/block/OxidizableCopperGolemStatueBlock;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_61434Lnet/minecraft/class_11593;field_61434:Lcom/mojang/serialization/MapCodec;official eLefd;e:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
OxidizableCopperGolemStatueBlock
public OxidizableCopperGolemStatueBlock(Oxidizable.OxidationLevel oxidationLevel, AbstractBlock.Settings settings) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/block/CopperGolemStatueBlock;<init>(Lnet/minecraft/block/Oxidizable$OxidationLevel;Lnet/minecraft/block/AbstractBlock$Settings;)Vintermediary <init>Lnet/minecraft/class_11583;<init>(Lnet/minecraft/class_5955$class_5811;Lnet/minecraft/class_4970$class_2251;)Vofficial <init>Ldwm;<init>(Leev$a;Lejl$d;)V
-
-
Method Details
-
getCodec
- Overrides:
getCodecin classCopperGolemStatueBlock- Mappings:
Namespace Name Mixin selector named getCodecLnet/minecraft/block/AbstractBlock;getCodec()Lcom/mojang/serialization/MapCodec;intermediary method_53969Lnet/minecraft/class_4970;method_53969()Lcom/mojang/serialization/MapCodec;official aLejl;a()Lcom/mojang/serialization/MapCodec;
-
hasRandomTicks
- Overrides:
hasRandomTicksin classAbstractBlock- Mappings:
Namespace Name Mixin selector named hasRandomTicksLnet/minecraft/block/AbstractBlock;hasRandomTicks(Lnet/minecraft/block/BlockState;)Zintermediary method_9542Lnet/minecraft/class_4970;method_9542(Lnet/minecraft/class_2680;)Zofficial fLejl;f(Lejm;)Z
-
randomTick
Called server-side when a block gets ticked randomly. This can be overridden to implement various logics, most commonly plant growth. Default implementation does nothing. To control the rate of the action, userandom.Random tick speed is controlled by the game rule
randomTickSpeedand can be disabled. Only blocks within 128-block cylinder (i.e. ignoring Y coordinates) around players receive random ticks.Blocks overriding this must use
AbstractBlock.Settings.ticksRandomly()block settings.Here are some examples:
SugarCaneBlockuses this to grow sugar cane.OxidizableBlockuses this to oxidize.NetherPortalBlockuses this to spawn zombified piglins.LeavesBlockuses this to decay when far from logs.
- Overrides:
randomTickin classAbstractBlock- See Also:
- Mappings:
Namespace Name Mixin selector named randomTickLnet/minecraft/block/AbstractBlock;randomTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;)Vintermediary method_9514Lnet/minecraft/class_4970;method_9514(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)Vofficial bLejl;b(Lejm;Lawx;Lja;Lbfq;)V
-
getDegradationLevel
- Specified by:
getDegradationLevelin interfaceDegradable<Oxidizable.OxidationLevel>- Mappings:
Namespace Name Mixin selector named getDegradationLevelLnet/minecraft/block/OxidizableCopperGolemStatueBlock;getDegradationLevel()Lnet/minecraft/block/Oxidizable$OxidationLevel;intermediary method_72648Lnet/minecraft/class_11593;method_72648()Lnet/minecraft/class_5955$class_5811;official qLefd;q()Leev$a;
-
onUseWithItem
protected ActionResult onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) - Overrides:
onUseWithItemin classCopperGolemStatueBlock- Mappings:
Namespace Name Mixin selector named onUseWithItemLnet/minecraft/block/AbstractBlock;onUseWithItem(Lnet/minecraft/item/ItemStack;Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;Lnet/minecraft/util/hit/BlockHitResult;)Lnet/minecraft/util/ActionResult;intermediary method_55765Lnet/minecraft/class_4970;method_55765(Lnet/minecraft/class_1799;Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;Lnet/minecraft/class_3965;)Lnet/minecraft/class_1269;official aLejl;a(Ldhp;Lejm;Ldrq;Lja;Lczl;Lcbp;Lfod;)Lcbq;
-