Package net.minecraft.block
Class Crops
java.lang.Object
net.minecraft.block.BlockBase
net.minecraft.block.Plant
net.minecraft.block.Crops
- Mappings:
Namespace Name intermediary net/minecraft/class_301glue class_321server ijclient ninamed net/minecraft/block/Crops
-
Field Summary
Fields inherited from class net.minecraft.block.BlockBase
ALLOWS_GRASS_UNDER, BED, BEDROCK, BOOKSHELF, BRICKS, BROWN_MUSHROOM, BUTTON, BY_ID, CACTUS, CAKE, CHEST, CLAY, COAL_ORE, COBBLESTONE, COBBLESTONE_STAIRS, COBWEB, CROPS, DANDELION, DEADBUSH, DETECTOR_RAIL, DIAMOND_BLOCK, DIAMOND_ORE, DIRT, DISPENSER, DOUBLE_STONE_SLAB, EMITTANCE, FARMLAND, FENCE, FIRE, FLOWING_LAVA, FLOWING_WATER, FULL_OPAQUE, FURNACE, FURNACE_LIT, GLASS, GLASS_SOUNDS, GLOWSTONE, GOLD_BLOCK, GOLD_ORE, GOLDEN_RAIL, GRASS, GRASS_SOUNDS, GRAVEL, GRAVEL_SOUNDS, hardness, HAS_TILE_ENTITY, ICE, id, IRON_BLOCK, IRON_DOOR, IRON_ORE, isStatEnabled, JACK_O_LANTERN, JUKEBOX, LADDER, LAPIS_LAZULI_BLOCK, LAPIS_LAZULI_ORE, LEAVES, LEVER, LIGHT_OPACITY, LOCKED_CHEST, LOG, material, maxX, maxY, maxZ, METAL_SOUNDS, minX, minY, minZ, MOB_SPAWNER, MOSSY_COBBLESTONE, MOVING_PISTON, NETHERRACK, NO_NOTIFY_ON_META_CHANGE, NOTEBLOCK, OBSIDIAN, particalSpeed, PISTON, PISTON_HEAD, PISTON_SOUNDS, PORTAL, PUMPKIN, RAIL, RED_MUSHROOM, REDSTONE_DUST, REDSTONE_ORE, REDSTONE_ORE_LIT, REDSTONE_REPEATER, REDSTONE_REPEATER_LIT, REDSTONE_TORCH, REDSTONE_TORCH_LIT, resistance, ROSE, SAND, SAND_SOUNDS, SANDSTONE, SAPLING, slipperiness, SNOW, SNOW_BLOCK, SOUL_SAND, sounds, SPONGE, STANDING_SIGN, STICKY_PISTON, STILL_LAVA, STILL_WATER, STONE, STONE_PRESSURE_PLATE, STONE_SLAB, STONE_SOUNDS, SUGAR_CANES, TALLGRASS, texture, TICKS_RANDOMLY, TNT, TORCH, TRAPDOOR, unusedBoolean1, WALL_SIGN, WOOD, WOOD_DOOR, WOOD_SOUNDS, WOOD_STAIRS, WOODEN_PRESSURE_PLATE, WOOL, WOOL_SOUNDS, WORKBENCH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbeforeDestroyedByExplosion(Level level, int x, int y, int z, int meta, float dropChance) protected booleancanPlantOnTopOf(int id) intgetDropCount(Random rand) intintintgetTextureForSide(int side, int meta) voidgrowCropInstantly(Level level, int x, int y, int z) private floatgrowCropStage(Level level, int x, int y, int z) voidonScheduledTick(Level level, int x, int y, int z, Random rand) Methods inherited from class net.minecraft.block.Plant
breakIfIncorrect, canGrow, canPlaceAt, getCollisionShape, isFullCube, isFullOpaque, onAdjacentBlockUpdateMethods inherited from class net.minecraft.block.BlockBase
activate, activate, afterBreak, afterPlaced, canPlaceAt, canUse, disableNotifyOnMetaDataChange, disableStat, doesBoxCollide, drop, drop, droppedMeta, getBaseColour, getBlastResistance, getBrightness, getColourMultiplier, getEmitsRedstonePower, getHardness, getHardness, getOutlineShape, getPistonPushMode, getRenderPass, getTextureForSide, getTextureForSide, getTickrate, getTranslatedName, getTranslationKey, indirectlyPowered, init, isCollidable, isCollidable, isPowered, isSideRendered, isSolid, isStatEnabled, method_1564, method_1605, onBlockPlaced, onBlockPlaced, onBlockRemoved, onCollideWithEntity, onDestroyedByExplosion, onEntityCollision, onSteppedOn, onTileAction, randomDisplayTick, setBlastResistance, setBoundingBox, setHardness, setLightEmittance, setLightOpacity, setSounds, setTicksRandomly, setTranslationKey, setUnbreakable, updateBoundingBox
-
Constructor Details
-
Crops
protected Crops(int id, int texture) - 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/Plant;<init>(II)V
-
-
Method Details
-
canPlantOnTopOf
protected boolean canPlantOnTopOf(int id) - Overrides:
canPlantOnTopOfin classPlant- 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 canPlantOnTopOfLnet/minecraft/block/Plant;canPlantOnTopOf(I)Z
-
onScheduledTick
- Overrides:
onScheduledTickin classPlant- 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 onScheduledTickLnet/minecraft/block/BlockBase;onScheduledTick(Lnet/minecraft/level/Level;IIILjava/util/Random;)V
-
growCropInstantly
- 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 growCropInstantlyLnet/minecraft/block/Crops;growCropInstantly(Lnet/minecraft/level/Level;III)V
-
growCropStage
- 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 growCropStageLnet/minecraft/block/Crops;growCropStage(Lnet/minecraft/level/Level;III)F
-
getTextureForSide
public int getTextureForSide(int side, int meta) - Overrides:
getTextureForSidein classBlockBase- 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 getTextureForSideLnet/minecraft/block/BlockBase;getTextureForSide(II)I
-
getRenderType
- Overrides:
getRenderTypein classPlant- 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/BlockBase;getRenderType()I
-
beforeDestroyedByExplosion
public void beforeDestroyedByExplosion(Level level, int x, int y, int z, int meta, float dropChance) - Overrides:
beforeDestroyedByExplosionin classBlockBase- 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 beforeDestroyedByExplosionLnet/minecraft/block/BlockBase;beforeDestroyedByExplosion(Lnet/minecraft/level/Level;IIIIF)V
-
getDropId
- Overrides:
getDropIdin classBlockBase- 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 getDropIdLnet/minecraft/block/BlockBase;getDropId(ILjava/util/Random;)I
-
getDropCount
- Overrides:
getDropCountin classBlockBase- 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 getDropCountLnet/minecraft/block/BlockBase;getDropCount(Ljava/util/Random;)I
-