Package net.frozenblock.wilderwild.block
Class EchoGlassBlock
java.lang.Object
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.Block
net.minecraft.world.level.block.HalfTransparentBlock
net.minecraft.world.level.block.AbstractGlassBlock
net.minecraft.world.level.block.TintedGlassBlock
net.frozenblock.wilderwild.block.EchoGlassBlock
- All Implemented Interfaces:
net.minecraft.world.flag.FeatureElement,net.minecraft.world.level.ItemLike
public class EchoGlassBlock
extends net.minecraft.world.level.block.TintedGlassBlock
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.block.Block
net.minecraft.world.level.block.Block.BlockStatePairKeyNested classes/interfaces inherited from class net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.state.BlockBehaviour.BlockStateBase, net.minecraft.world.level.block.state.BlockBehaviour.OffsetFunction, net.minecraft.world.level.block.state.BlockBehaviour.OffsetType, net.minecraft.world.level.block.state.BlockBehaviour.Properties, net.minecraft.world.level.block.state.BlockBehaviour.StateArgumentPredicate<A>, net.minecraft.world.level.block.state.BlockBehaviour.StatePredicate -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.world.level.block.state.properties.IntegerPropertystatic final intstatic final intFields inherited from class net.minecraft.world.level.block.Block
BLOCK_STATE_REGISTRY, INDESTRUCTIBLE, INSTANT, stateDefinition, UPDATE_ALL, UPDATE_ALL_IMMEDIATE, UPDATE_CLIENTS, UPDATE_IMMEDIATE, UPDATE_INVISIBLE, UPDATE_KNOWN_SHAPE, UPDATE_LIMIT, UPDATE_MOVE_BY_PISTON, UPDATE_NEIGHBORS, UPDATE_NONE, UPDATE_SUPPRESS_DROPSFields inherited from class net.minecraft.world.level.block.state.BlockBehaviour
drops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, properties, requiredFeatures, soundType, speedFactor, UPDATE_SHAPE_ORDERFields inherited from interface net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES -
Constructor Summary
ConstructorsConstructorDescriptionEchoGlassBlock(net.minecraft.world.level.block.state.BlockBehaviour.Properties settings) -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancanDamage(@NotNull net.minecraft.world.level.block.state.BlockState state) protected voidcreateBlockStateDefinition(net.minecraft.world.level.block.state.StateDefinition.Builder<net.minecraft.world.level.block.Block, net.minecraft.world.level.block.state.BlockState> builder) static voiddamage(@NotNull net.minecraft.world.level.Level level, @NotNull net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState blockState, boolean shouldDrop) @NotNull net.minecraft.world.item.ItemStackgetCloneItemStack(@NotNull net.minecraft.world.level.BlockGetter level, @NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.level.block.state.BlockState state) intgetLightBlock(net.minecraft.world.level.block.state.BlockState state, @NotNull net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos pos) static intgetLightLevel(@NotNull net.minecraft.world.level.Level level, @NotNull net.minecraft.core.BlockPos blockPos) static voidheal(@NotNull net.minecraft.world.level.Level level, @NotNull net.minecraft.core.BlockPos pos) voidonProjectileHit(@NotNull net.minecraft.world.level.Level level, @NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull net.minecraft.world.phys.BlockHitResult hit, @NotNull net.minecraft.world.entity.projectile.Projectile projectile) voidplayerDestroy(@NotNull net.minecraft.world.level.Level level, @NotNull net.minecraft.world.entity.player.Player player, @NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.level.block.state.BlockState state, @Nullable net.minecraft.world.level.block.entity.BlockEntity blockEntity, @NotNull net.minecraft.world.item.ItemStack stack) booleanpropagatesSkylightDown(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos pos) voidrandomTick(@NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull net.minecraft.server.level.ServerLevel level, @NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.util.RandomSource random) static voidsetDamagedState(@NotNull net.minecraft.world.level.Level level, @NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.level.block.state.BlockState blockState) Methods inherited from class net.minecraft.world.level.block.AbstractGlassBlock
getShadeBrightness, getVisualShapeMethods inherited from class net.minecraft.world.level.block.HalfTransparentBlock
skipRenderingMethods inherited from class net.minecraft.world.level.block.Block
animateTick, appendHoverText, asBlock, asItem, box, builtInRegistryHolder, byItem, canSupportCenter, canSupportRigidBlock, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, fallOn, getDescriptionId, getDrops, getDrops, getExplosionResistance, getFriction, getId, getJumpFactor, getName, getShapeForEachState, getSoundType, getSpeedFactor, getStateDefinition, getStateForPlacement, handlePrecipitation, hasDynamicShape, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isRandomlyTicking, isShapeFullBlock, playerWillDestroy, popExperience, popResource, popResourceFromFace, pushEntitiesUp, registerDefaultState, setPlacedBy, shouldRenderFace, spawnDestroyParticles, stateById, stepOn, toString, tryDropExperience, updateEntityAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded, withPropertiesOfMethods inherited from class net.minecraft.world.level.block.state.BlockBehaviour
attack, canBeReplaced, canBeReplaced, canSurvive, defaultDestroyTime, defaultMapColor, entityInside, getAnalogOutputSignal, getBlockSupportShape, getCollisionShape, getDestroyProgress, getDirectSignal, getDrops, getFluidState, getInteractionShape, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getMenuProvider, getOcclusionShape, getRenderShape, getSeed, getShape, getSignal, hasAnalogOutputSignal, isCollisionShapeFullBlock, isOcclusionShapeFullBlock, isPathfindable, isSignalSource, mirror, neighborChanged, onPlace, onRemove, requiredFeatures, rotate, spawnAfterBreak, tick, triggerEvent, updateIndirectNeighbourShapes, updateShape, use, useShapeForLightOcclusionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.flag.FeatureElement
isEnabled
-
Field Details
-
MIN_CRACK_PARTICLES
public static final int MIN_CRACK_PARTICLES- See Also:
-
MAX_DAMAGE_PARTICLES
public static final int MAX_DAMAGE_PARTICLES- See Also:
-
DAMAGE
public static final net.minecraft.world.level.block.state.properties.IntegerProperty DAMAGE
-
-
Constructor Details
-
EchoGlassBlock
public EchoGlassBlock(@NotNull net.minecraft.world.level.block.state.BlockBehaviour.Properties settings)
-
-
Method Details
-
canDamage
public static boolean canDamage(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState state) -
setDamagedState
public static void setDamagedState(@NotNull @NotNull net.minecraft.world.level.Level level, @NotNull @NotNull net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.world.level.block.state.BlockState blockState) -
damage
public static void damage(@NotNull @NotNull net.minecraft.world.level.Level level, @NotNull @NotNull net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState blockState, boolean shouldDrop) -
heal
public static void heal(@NotNull @NotNull net.minecraft.world.level.Level level, @NotNull @NotNull net.minecraft.core.BlockPos pos) -
getLightLevel
public static int getLightLevel(@NotNull @NotNull net.minecraft.world.level.Level level, @NotNull @NotNull net.minecraft.core.BlockPos blockPos) -
propagatesSkylightDown
public boolean propagatesSkylightDown(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos pos) - Overrides:
propagatesSkylightDownin classnet.minecraft.world.level.block.TintedGlassBlock
-
getLightBlock
public int getLightBlock(net.minecraft.world.level.block.state.BlockState state, @NotNull @NotNull net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos pos) - Overrides:
getLightBlockin classnet.minecraft.world.level.block.TintedGlassBlock
-
createBlockStateDefinition
protected void createBlockStateDefinition(@NotNull net.minecraft.world.level.block.state.StateDefinition.Builder<net.minecraft.world.level.block.Block, net.minecraft.world.level.block.state.BlockState> builder) - Overrides:
createBlockStateDefinitionin classnet.minecraft.world.level.block.Block
-
randomTick
public void randomTick(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull @NotNull net.minecraft.server.level.ServerLevel level, @NotNull @NotNull net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.util.RandomSource random) - Overrides:
randomTickin classnet.minecraft.world.level.block.state.BlockBehaviour
-
playerDestroy
public void playerDestroy(@NotNull @NotNull net.minecraft.world.level.Level level, @NotNull @NotNull net.minecraft.world.entity.player.Player player, @NotNull @NotNull net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.world.level.block.state.BlockState state, @Nullable @Nullable net.minecraft.world.level.block.entity.BlockEntity blockEntity, @NotNull @NotNull net.minecraft.world.item.ItemStack stack) - Overrides:
playerDestroyin classnet.minecraft.world.level.block.Block
-
onProjectileHit
public void onProjectileHit(@NotNull @NotNull net.minecraft.world.level.Level level, @NotNull @NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull @NotNull net.minecraft.world.phys.BlockHitResult hit, @NotNull @NotNull net.minecraft.world.entity.projectile.Projectile projectile) - Overrides:
onProjectileHitin classnet.minecraft.world.level.block.state.BlockBehaviour
-
getCloneItemStack
@NotNull public @NotNull net.minecraft.world.item.ItemStack getCloneItemStack(@NotNull @NotNull net.minecraft.world.level.BlockGetter level, @NotNull @NotNull net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.world.level.block.state.BlockState state) - Overrides:
getCloneItemStackin classnet.minecraft.world.level.block.Block
-