public class EssenceJarBlock
extends net.minecraft.block.ContainerBlock
net.minecraft.block.Block.RenderSideCacheKey
net.minecraft.block.AbstractBlock.AbstractBlockState, net.minecraft.block.AbstractBlock.IExtendedPositionPredicate<A>, net.minecraft.block.AbstractBlock.IPositionPredicate, net.minecraft.block.AbstractBlock.OffsetType, net.minecraft.block.AbstractBlock.Properties
Modifier and Type | Field and Description |
---|---|
static net.minecraft.state.BooleanProperty |
CONTENTS |
static net.minecraft.client.renderer.model.ModelResourceLocation |
MODEL |
BLOCK_STATE_REGISTRY, LOGGER, RANDOM, stateDefinition
Constructor and Description |
---|
EssenceJarBlock() |
Modifier and Type | Method and Description |
---|---|
static int |
addEssence(net.minecraft.item.ItemStack stack,
int essence,
net.minecraft.entity.player.ServerPlayerEntity player) |
void |
appendHoverText(net.minecraft.item.ItemStack stack,
net.minecraft.world.IBlockReader world,
java.util.List<net.minecraft.util.text.ITextComponent> lore,
net.minecraft.client.util.ITooltipFlag flag) |
protected void |
createBlockStateDefinition(net.minecraft.state.StateContainer.Builder<net.minecraft.block.Block,net.minecraft.block.BlockState> builder) |
static net.minecraft.item.ItemStack |
createFullJarItem(java.awt.Color color,
java.lang.String colorName) |
static net.minecraft.item.ItemStack |
createFullJarItem(net.minecraft.item.DyeColor dyeColor) |
static net.minecraft.item.ItemStack |
createJarItem(double jarPercentFull,
java.awt.Color color,
java.lang.String colorName) |
static net.minecraft.item.ItemStack |
createJarItem(net.minecraft.item.DyeColor dyeColor) |
void |
fillItemCategory(net.minecraft.item.ItemGroup tab,
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> items) |
net.minecraft.item.ItemStack |
getCloneItemStack(net.minecraft.world.IBlockReader world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState state) |
java.util.List<net.minecraft.item.ItemStack> |
getDrops(net.minecraft.block.BlockState state,
net.minecraft.loot.LootContext.Builder context) |
int |
getLightValue(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader world,
net.minecraft.util.math.BlockPos pos) |
net.minecraft.item.ItemStack |
getPickBlock(net.minecraft.block.BlockState state,
net.minecraft.util.math.RayTraceResult target,
net.minecraft.world.IBlockReader world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.player.PlayerEntity player) |
net.minecraft.block.BlockRenderType |
getRenderShape(net.minecraft.block.BlockState p_149645_1_) |
float |
getShadeBrightness(net.minecraft.block.BlockState p_220080_1_,
net.minecraft.world.IBlockReader p_220080_2_,
net.minecraft.util.math.BlockPos p_220080_3_) |
net.minecraft.util.math.shapes.VoxelShape |
getShape(net.minecraft.block.BlockState p_220053_1_,
net.minecraft.world.IBlockReader p_220053_2_,
net.minecraft.util.math.BlockPos p_220053_3_,
net.minecraft.util.math.shapes.ISelectionContext p_220053_4_) |
net.minecraft.block.BlockState |
getStateForPlacement(net.minecraft.item.BlockItemUseContext context) |
net.minecraft.util.math.shapes.VoxelShape |
getVisualShape(net.minecraft.block.BlockState p_230322_1_,
net.minecraft.world.IBlockReader p_230322_2_,
net.minecraft.util.math.BlockPos p_230322_3_,
net.minecraft.util.math.shapes.ISelectionContext p_230322_4_) |
net.minecraft.tileentity.TileEntity |
newBlockEntity(net.minecraft.world.IBlockReader p_196283_1_) |
boolean |
propagatesSkylightDown(net.minecraft.block.BlockState p_200123_1_,
net.minecraft.world.IBlockReader p_200123_2_,
net.minecraft.util.math.BlockPos p_200123_3_) |
void |
randomTick(net.minecraft.block.BlockState p_225542_1_,
net.minecraft.world.server.ServerWorld p_225542_2_,
net.minecraft.util.math.BlockPos p_225542_3_,
java.util.Random p_225542_4_) |
void |
setPlacedBy(net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState state,
net.minecraft.entity.LivingEntity placer,
net.minecraft.item.ItemStack stack) |
animateTick, asBlock, asItem, box, byItem, canSupportCenter, canSupportRigidBlock, canSustainPlant, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, fallOn, getDescriptionId, getDrops, getDrops, getExplosionResistance, getFriction, getHarvestLevel, getHarvestTool, getId, getJumpFactor, getName, getSoundType, getSpeedFactor, getStateDefinition, getTags, handleRain, hasDynamicShape, is, is, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isRandomlyTicking, isShapeFullBlock, playerDestroy, playerWillDestroy, popExperience, popResource, pushEntitiesUp, registerDefaultState, shouldRenderFace, stateById, stepOn, toString, updateEntityAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded
attack, canBeReplaced, canBeReplaced, canSurvive, defaultMaterialColor, entityInside, getAnalogOutputSignal, getBlockSupportShape, getCollisionShape, getDestroyProgress, getDirectSignal, getFluidState, getInteractionShape, getLightBlock, getLootTable, getOcclusionShape, getOffsetType, getPistonPushReaction, getSeed, getSignal, hasAnalogOutputSignal, isAir, isEntityBlock, isPathfindable, isSignalSource, mirror, neighborChanged, onPlace, onProjectileHit, onRemove, rotate, skipRendering, spawnAfterBreak, tick, updateIndirectNeighbourShapes, updateShape, use, useShapeForLightOcclusion
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addDestroyEffects, addHitEffects, addLandingEffects, addRunningEffects, canBeReplacedByLeaves, canBeReplacedByLogs, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, catchFire, collisionExtendsVertically, createTileEntity, getAiPathNodeType, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlock, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFogColor, getRespawnPosition, getSlipperiness, getSoundType, getStateAtViewpoint, getToolModifiedState, getWeakChanges, hasTileEntity, isAir, isBed, isBurning, isConduitFrame, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, isToolEffective, makesOpenTrapdoorAboveClimbable, observedNeighborChange, onBlockExploded, onNeighborChange, onPlantGrow, removedByPlayer, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlay
public static final net.minecraft.client.renderer.model.ModelResourceLocation MODEL
public static final net.minecraft.state.BooleanProperty CONTENTS
public static net.minecraft.item.ItemStack createJarItem(net.minecraft.item.DyeColor dyeColor)
public static net.minecraft.item.ItemStack createJarItem(double jarPercentFull, java.awt.Color color, java.lang.String colorName)
public static net.minecraft.item.ItemStack createFullJarItem(net.minecraft.item.DyeColor dyeColor)
public static net.minecraft.item.ItemStack createFullJarItem(java.awt.Color color, java.lang.String colorName)
public static int addEssence(net.minecraft.item.ItemStack stack, int essence, net.minecraft.entity.player.ServerPlayerEntity player)
public void appendHoverText(net.minecraft.item.ItemStack stack, @Nullable net.minecraft.world.IBlockReader world, java.util.List<net.minecraft.util.text.ITextComponent> lore, net.minecraft.client.util.ITooltipFlag flag)
appendHoverText
in class net.minecraft.block.Block
public void randomTick(net.minecraft.block.BlockState p_225542_1_, net.minecraft.world.server.ServerWorld p_225542_2_, net.minecraft.util.math.BlockPos p_225542_3_, java.util.Random p_225542_4_)
randomTick
in class net.minecraft.block.AbstractBlock
protected void createBlockStateDefinition(net.minecraft.state.StateContainer.Builder<net.minecraft.block.Block,net.minecraft.block.BlockState> builder)
createBlockStateDefinition
in class net.minecraft.block.Block
@Nullable public net.minecraft.block.BlockState getStateForPlacement(net.minecraft.item.BlockItemUseContext context)
getStateForPlacement
in class net.minecraft.block.Block
public net.minecraft.item.ItemStack getPickBlock(net.minecraft.block.BlockState state, net.minecraft.util.math.RayTraceResult target, net.minecraft.world.IBlockReader world, net.minecraft.util.math.BlockPos pos, net.minecraft.entity.player.PlayerEntity player)
public net.minecraft.item.ItemStack getCloneItemStack(net.minecraft.world.IBlockReader world, net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState state)
getCloneItemStack
in class net.minecraft.block.Block
public java.util.List<net.minecraft.item.ItemStack> getDrops(net.minecraft.block.BlockState state, net.minecraft.loot.LootContext.Builder context)
getDrops
in class net.minecraft.block.AbstractBlock
public void setPlacedBy(net.minecraft.world.World worldIn, net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState state, net.minecraft.entity.LivingEntity placer, net.minecraft.item.ItemStack stack)
setPlacedBy
in class net.minecraft.block.Block
public net.minecraft.util.math.shapes.VoxelShape getShape(net.minecraft.block.BlockState p_220053_1_, net.minecraft.world.IBlockReader p_220053_2_, net.minecraft.util.math.BlockPos p_220053_3_, net.minecraft.util.math.shapes.ISelectionContext p_220053_4_)
getShape
in class net.minecraft.block.AbstractBlock
public net.minecraft.util.math.shapes.VoxelShape getVisualShape(net.minecraft.block.BlockState p_230322_1_, net.minecraft.world.IBlockReader p_230322_2_, net.minecraft.util.math.BlockPos p_230322_3_, net.minecraft.util.math.shapes.ISelectionContext p_230322_4_)
getVisualShape
in class net.minecraft.block.AbstractBlock
public float getShadeBrightness(net.minecraft.block.BlockState p_220080_1_, net.minecraft.world.IBlockReader p_220080_2_, net.minecraft.util.math.BlockPos p_220080_3_)
getShadeBrightness
in class net.minecraft.block.AbstractBlock
public boolean propagatesSkylightDown(net.minecraft.block.BlockState p_200123_1_, net.minecraft.world.IBlockReader p_200123_2_, net.minecraft.util.math.BlockPos p_200123_3_)
propagatesSkylightDown
in class net.minecraft.block.Block
public int getLightValue(net.minecraft.block.BlockState state, net.minecraft.world.IBlockReader world, net.minecraft.util.math.BlockPos pos)
@Nullable public net.minecraft.tileentity.TileEntity newBlockEntity(net.minecraft.world.IBlockReader p_196283_1_)
public net.minecraft.block.BlockRenderType getRenderShape(net.minecraft.block.BlockState p_149645_1_)
getRenderShape
in class net.minecraft.block.ContainerBlock
public void fillItemCategory(net.minecraft.item.ItemGroup tab, net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> items)
fillItemCategory
in class net.minecraft.block.Block