public class HoneyBlock extends TransparentBlock
Block.NeighborGroupAbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>| Modifier and Type | Field and Description |
|---|---|
protected static VoxelShape |
SHAPE |
LOGGER, STATE_IDS, stateManagercollidable, dynamicBounds, FACINGS, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier| Constructor and Description |
|---|
HoneyBlock(AbstractBlock.Settings settings) |
| Modifier and Type | Method and Description |
|---|---|
private void |
addCollisionEffects(World world,
Entity entity) |
private static void |
addParticles(Entity entity,
int count) |
static void |
addRegularParticles(Entity entity) |
static void |
addRichParticles(Entity entity) |
VoxelShape |
getCollisionShape(BlockState state,
BlockView world,
BlockPos pos,
ShapeContext context) |
private static boolean |
hasHoneyBlockEffects(Entity entity) |
private boolean |
isSliding(BlockPos pos,
Entity entity) |
void |
onEntityCollision(BlockState state,
World world,
BlockPos pos,
Entity entity) |
void |
onLandedUpon(World world,
BlockPos pos,
Entity entity,
float distance) |
private void |
triggerAdvancement(Entity entity,
BlockPos pos) |
private void |
updateSlidingVelocity(Entity entity) |
isSideInvisibleaddStacksForDisplay, 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, toStringcalcBlockBreakingDelta, 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, scheduledTickprotected static final VoxelShape SHAPE
public HoneyBlock(AbstractBlock.Settings settings)
private static boolean hasHoneyBlockEffects(Entity entity)
public VoxelShape getCollisionShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)
getCollisionShape in class AbstractBlockpublic void onLandedUpon(World world, BlockPos pos, Entity entity, float distance)
onLandedUpon in class Blockpublic void onEntityCollision(BlockState state, World world, BlockPos pos, Entity entity)
onEntityCollision in class AbstractBlockprivate void updateSlidingVelocity(Entity entity)
@Environment(value=CLIENT) public static void addRegularParticles(Entity entity)
@Environment(value=CLIENT) public static void addRichParticles(Entity entity)
@Environment(value=CLIENT) private static void addParticles(Entity entity, int count)