Package net.minecraft.block
Class HoneyBlock
java.lang.Object
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
net.minecraft.block.TransparentBlock
net.minecraft.block.HoneyBlock
- All Implemented Interfaces:
ItemConvertible
public class HoneyBlock extends TransparentBlock
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.NeighborGroupNested classes/interfaces inherited from class net.minecraft.block.AbstractBlock
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A> -
Field Summary
Fields Modifier and Type Field Description protected static VoxelShapeSHAPEFields inherited from class net.minecraft.block.Block
LOGGER, STATE_IDS, stateManagerFields inherited from class net.minecraft.block.AbstractBlock
collidable, dynamicBounds, FACINGS, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier -
Constructor Summary
Constructors Constructor Description HoneyBlock(AbstractBlock.Settings settings) -
Method Summary
Modifier and Type Method Description private voidaddCollisionEffects(World world, Entity entity)private static voidaddParticles(Entity entity, int count)static voidaddRegularParticles(Entity entity)static voidaddRichParticles(Entity entity)VoxelShapegetCollisionShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)private static booleanhasHoneyBlockEffects(Entity entity)private booleanisSliding(BlockPos pos, Entity entity)voidonEntityCollision(BlockState state, World world, BlockPos pos, Entity entity)voidonLandedUpon(World world, BlockPos pos, Entity entity, float distance)private voidtriggerAdvancement(Entity entity, BlockPos pos)private voidupdateSlidingVelocity(Entity entity)Methods inherited from class net.minecraft.block.TransparentBlock
isSideInvisibleMethods inherited from class net.minecraft.block.Block
addStacksForDisplay, afterBreak, appendProperties, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropStack, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPickStack, getPlacementState, getRawIdFromState, getSlipperiness, getSoundGroup, getStateFromRawId, getStateManager, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasRandomTicks, hasTopRim, is, isFaceFullSquare, isIn, isShapeFullCube, isTranslucent, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onPlaced, onSteppedOn, postProcessState, pushEntitiesUpBeforeBlockChange, rainTick, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, toStringMethods inherited from class net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canPathfindThrough, canPlaceAt, canReplace, createScreenHandlerFactory, emitsRedstonePower, getAmbientOcclusionLightLevel, getComparatorOutput, getCullingShape, getDefaultMaterialColor, getDroppedStacks, getFluidState, getLootTableId, getOffsetType, getOpacity, getOutlineShape, getPistonBehavior, getRaycastShape, getRenderingSeed, getRenderType, getSidesShape, getStateForNeighborUpdate, getStrongRedstonePower, getVisualShape, getWeakRedstonePower, hasBlockEntity, hasComparatorOutput, hasSidedTransparency, mirror, neighborUpdate, onBlockAdded, onBlockBreakStart, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, onUse, prepare, randomTick, rotate, scheduledTick
-
Field Details
-
SHAPE
-
-
Constructor Details
-
HoneyBlock
-
-
Method Details
-
hasHoneyBlockEffects
-
getCollisionShape
public VoxelShape getCollisionShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)- Overrides:
getCollisionShapein classAbstractBlock
-
onLandedUpon
- Overrides:
onLandedUponin classBlock
-
onEntityCollision
- Overrides:
onEntityCollisionin classAbstractBlock
-
isSliding
-
triggerAdvancement
-
updateSlidingVelocity
-
addCollisionEffects
-
addRegularParticles
-
addRichParticles
-
addParticles
-