Package net.minecraft.block
Class CropBlock
java.lang.Object
net.minecraft.block.Block
net.minecraft.block.PlantBlock
net.minecraft.block.CropBlock
- Mappings:
Namespace Name intermediary net/minecraft/class_301glue class_321server ijclient ninamed net/minecraft/block/CropBlock
-
Field Summary
Fields inherited from class net.minecraft.block.Block
BED, BEDROCK, BLOCKS, BLOCKS_ALLOW_VISION, BLOCKS_IGNORE_META_UPDATE, BLOCKS_LIGHT_LUMINANCE, BLOCKS_LIGHT_OPACITY, BLOCKS_OPAQUE, BLOCKS_RANDOM_TICK, BLOCKS_WITH_ENTITY, BOOKSHELF, BRICKS, BROWN_MUSHROOM, BUTTON, CACTUS, CAKE, CHEST, CLAY, COAL_ORE, COBBLESTONE, COBBLESTONE_STAIRS, COBWEB, constructed, CRAFTING_TABLE, DANDELION, DEAD_BUSH, DEFAULT_SOUND_GROUP, DETECTOR_RAIL, DIAMOND_BLOCK, DIAMOND_ORE, DIRT, DIRT_SOUND_GROUP, DISPENSER, DOOR, DOUBLE_SLAB, FARMLAND, FENCE, FIRE, FLOWING_LAVA, FLOWING_WATER, FURNACE, GLASS, GLASS_SOUND_GROUP, GLOWSTONE, GOLD_BLOCK, GOLD_ORE, GRASS, GRASS_BLOCK, GRAVEL, GRAVEL_SOUND_GROUP, hardness, ICE, id, IRON_BLOCK, IRON_DOOR, IRON_ORE, JACK_O_LANTERN, JUKEBOX, LADDER, LAPIS_BLOCK, LAPIS_ORE, LAVA, LEAVES, LEVER, LIT_FURNACE, LIT_REDSTONE_ORE, LIT_REDSTONE_TORCH, LOCKED_CHEST, LOG, material, maxX, maxY, maxZ, METAL_SOUND_GROUP, minX, minY, minZ, MOSSY_COBBLESTONE, MOVING_PISTON, NETHER_PORTAL, NETHERRACK, NOTE_BLOCK, OBSIDIAN, particleFallSpeedModifier, PISTON, PISTON_HEAD, PLANKS, POWERED_RAIL, POWERED_REPEATER, PUMPKIN, RAIL, RED_MUSHROOM, REDSTONE_ORE, REDSTONE_TORCH, REDSTONE_WIRE, REPEATER, resistance, ROSE, SAND, SAND_SOUND_GROUP, SANDSTONE, SAPLING, shouldTrackStatistics, SIGN, SLAB, slipperiness, SNOW, SNOW_BLOCK, SOUL_SAND, soundGroup, SPAWNER, SPONGE, STICKY_PISTON, STONE, STONE_PRESSURE_PLATE, STONE_SOUND_GROUP, SUGAR_CANE, textureId, TNT, TORCH, TRAPDOOR, WALL_SIGN, WATER, WHEAT, WOOD_SOUND_GROUP, WOODEN_PRESSURE_PLATE, WOODEN_STAIRS, WOOL, WOOL_SOUND_GROUP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyFullGrowth(World world, int x, int y, int z) protected booleancanPlantOnTop(int id) voiddropStacks(World world, int x, int y, int z, int meta, float luck) private floatgetAvailableMoisture(World world, int x, int y, int z) intgetDroppedItemCount(Random random) intgetDroppedItemId(int blockMeta, Random random) intintgetTexture(int side, int meta) voidCalled at a frequency based on the return value ofBlock.getTickRate().Methods inherited from class net.minecraft.block.PlantBlock
breakIfCannotGrow, canGrow, canPlaceAt, getCollisionShape, isFullCube, isOpaque, neighborUpdateMethods inherited from class net.minecraft.block.Block
addIntersectingBoundingBox, afterBreak, applyVelocity, canEmitRedstonePower, canPlaceAt, canTransferPowerInDirection, disableTrackingStatistics, dropStack, dropStacks, getBlastResistance, getBoundingBox, getColor, getColorMultiplier, getDroppedItemMeta, getHardness, getHardness, getLuminance, getPistonBehavior, getRenderLayer, getTexture, getTextureId, getTickRate, getTranslatedName, getTranslationKey, hasCollision, hasCollision, ignoreMetaUpdates, init, isEmittingRedstonePowerInDirection, isSideVisible, isSolidFace, isTrackingStatistics, onBlockAction, onBlockBreakStart, onBreak, onDestroyedByExplosion, onEntityCollision, onMetadataChange, onPlaced, onPlaced, onPlaced, onSteppedOn, onUse, randomDisplayTick, raycast, setBoundingBox, setHardness, setLuminance, setOpacity, setResistance, setSoundGroup, setTickRandomly, setTranslationKey, setUnbreakable, setupRenderBoundingBox, updateBoundingBox
-
Constructor Details
-
CropBlock
protected CropBlock(int id, int textureId) - Mappings:
Namespace Name Mixin selector intermediary <init>Lnet/minecraft/class_473;<init>(II)Vglue <init>Lclass_538;<init>(II)Vserver <init>Lnw;<init>(II)Vclient <init>Lwb;<init>(II)Vnamed <init>Lnet/minecraft/block/PlantBlock;<init>(II)V
-
-
Method Details
-
canPlantOnTop
protected boolean canPlantOnTop(int id) - Overrides:
canPlantOnTopin classPlantBlock- Mappings:
Namespace Name Mixin selector intermediary method_1683Lnet/minecraft/class_473;method_1683(I)Zglue method_1089Lclass_538;method_1089(I)Zserver cLnw;c(I)Zclient dLwb;d(I)Znamed canPlantOnTopLnet/minecraft/block/PlantBlock;canPlantOnTop(I)Z
-
onTick
Called at a frequency based on the return value ofBlock.getTickRate(). This method will be called approximatelyBlock.getTickRate()times per second.- Overrides:
onTickin classPlantBlock- Mappings:
Namespace Name Mixin selector intermediary method_1602Lnet/minecraft/class_17;method_1602(Lnet/minecraft/class_18;IIILjava/util/Random;)Vglue method_20Lclass_507;method_20(Lclass_129;IIILjava/util/Random;)Vserver aLna;a(Ldj;IIILjava/util/Random;)Vclient aLuu;a(Lfd;IIILjava/util/Random;)Vnamed onTickLnet/minecraft/block/Block;onTick(Lnet/minecraft/world/World;IIILjava/util/Random;)V
-
applyFullGrowth
- Mappings:
Namespace Name Mixin selector intermediary method_996Lnet/minecraft/class_301;method_996(Lnet/minecraft/class_18;III)Vglue method_1352Lclass_321;method_1352(Lclass_129;III)Vserver d_Lij;d_(Ldj;III)Vclient d_Lni;d_(Lfd;III)Vnamed applyFullGrowthLnet/minecraft/block/CropBlock;applyFullGrowth(Lnet/minecraft/world/World;III)V
-
getAvailableMoisture
- Mappings:
Namespace Name Mixin selector intermediary method_997Lnet/minecraft/class_301;method_997(Lnet/minecraft/class_18;III)Fglue method_1353Lclass_321;method_1353(Lclass_129;III)Fserver hLij;h(Ldj;III)Fclient iLni;i(Lfd;III)Fnamed getAvailableMoistureLnet/minecraft/block/CropBlock;getAvailableMoisture(Lnet/minecraft/world/World;III)F
-
getTexture
public int getTexture(int side, int meta) - Overrides:
getTexturein classBlock- Mappings:
Namespace Name Mixin selector intermediary method_1627Lnet/minecraft/class_17;method_1627(II)Iglue method_96Lclass_507;method_96(II)Iserver aLna;a(II)Iclient aLuu;a(II)Inamed getTextureLnet/minecraft/block/Block;getTexture(II)I
-
getRenderType
- Overrides:
getRenderTypein classPlantBlock- Mappings:
Namespace Name Mixin selector intermediary method_1621Lnet/minecraft/class_17;method_1621()Iglue method_652Lclass_507;method_652()Iserver method_1621Lna;method_1621()Iclient bLuu;b()Inamed getRenderTypeLnet/minecraft/block/Block;getRenderType()I
-
dropStacks
- Overrides:
dropStacksin classBlock- Mappings:
Namespace Name Mixin selector intermediary method_1625Lnet/minecraft/class_17;method_1625(Lnet/minecraft/class_18;IIIIF)Vglue method_683Lclass_507;method_683(Lclass_129;IIIIF)Vserver aLna;a(Ldj;IIIIF)Vclient aLuu;a(Lfd;IIIIF)Vnamed dropStacksLnet/minecraft/block/Block;dropStacks(Lnet/minecraft/world/World;IIIIF)V
-
getDroppedItemId
- Overrides:
getDroppedItemIdin classBlock- Mappings:
Namespace Name Mixin selector intermediary method_1601Lnet/minecraft/class_17;method_1601(ILjava/util/Random;)Iglue method_19Lclass_507;method_19(ILjava/util/Random;)Iserver aLna;a(ILjava/util/Random;)Iclient aLuu;a(ILjava/util/Random;)Inamed getDroppedItemIdLnet/minecraft/block/Block;getDroppedItemId(ILjava/util/Random;)I
-
getDroppedItemCount
- Overrides:
getDroppedItemCountin classBlock- Mappings:
Namespace Name Mixin selector intermediary method_1603Lnet/minecraft/class_17;method_1603(Ljava/util/Random;)Iglue method_21Lclass_507;method_21(Ljava/util/Random;)Iserver aLna;a(Ljava/util/Random;)Iclient aLuu;a(Ljava/util/Random;)Inamed getDroppedItemCountLnet/minecraft/block/Block;getDroppedItemCount(Ljava/util/Random;)I
-