Interface IForgeRegistryEntry<V>

All Known Subinterfaces:
RecipeSerializer<T>
All Known Implementing Classes:
AbsoptionMobEffect, AbstractBannerBlock, AbstractCandleBlock, AbstractCauldronBlock, AbstractChestBlock, AbstractFlowerFeature, AbstractFurnaceBlock, AbstractGlassBlock, AbstractHugeMushroomFeature, AbstractSkullBlock, Activity, AirBlock, AirItem, AmethystBlock, AmethystClusterBlock, AnvilBlock, ArmorItem, ArmorStandItem, ArrowDamageEnchantment, ArrowFireEnchantment, ArrowInfiniteEnchantment, ArrowItem, ArrowKnockbackEnchantment, ArrowPiercingEnchantment, AttachedStemBlock, AttackDamageMobEffect, Attribute, AxeItem, AzaleaBlock, BadlandsSurfaceBuilder, BambooBlock, BambooFeature, BambooSaplingBlock, BannerBlock, BannerItem, BannerPatternItem, BarrelBlock, BarrierBlock, BasaltColumnsFeature, BasaltDeltasSurfaceBuilder, BasaltPillarFeature, BaseCoralFanBlock, BaseCoralPlantBlock, BaseCoralPlantTypeBlock, BaseCoralWallFanBlock, BaseDiskFeature, BaseEntityBlock, BaseFireBlock, BasePressurePlateBlock, BaseRailBlock, BastionFeature, BeaconBlock, BedBlock, BedItem, BeehiveBlock, BeetrootBlock, BellBlock, BigDripleafBlock, BigDripleafStemBlock, BindingCurseEnchantment, Biome, BlastFurnaceBlock, Block, BlockBehaviour, BlockBlobFeature, BlockEntityOnLoadTest.TestBlock, BlockEntityType, BlockItem, BlockPileFeature, BlockPlacerType, BlockStateProviderType, BlueIceFeature, BoatItem, BoneMealItem, BonusChestFeature, BookItem, BottleItem, BowItem, BowlFoodItem, BrewingStandBlock, BubbleColumnBlock, BucketItem, BuddingAmethystBlock, BundleItem, BuriedTreasureFeature, BushBlock, ButtonBlock, CactusBlock, CakeBlock, CampfireBlock, CandleBlock, CandleCakeBlock, CanyonWorldCarver, CarpetBlock, CarrotBlock, CartographyTableBlock, CarvedPumpkinBlock, CarvingMaskDecorator, CauldronBlock, CaveSurfaceDecorator, CaveVinesBlock, CaveVinesPlantBlock, CaveWorldCarver, ChainBlock, ChanceDecorator, ChestBlock, ChorusFlowerBlock, ChorusFruitItem, ChorusPlantBlock, ChorusPlantFeature, ChunkStatus, CocoaBlock, CommandBlock, ComparatorBlock, CompassItem, ComplexItem, ComposterBlock, ConcretePowderBlock, ConditionalRecipe.Serializer, ConduitBlock, CoralBlock, CoralClawFeature, CoralFanBlock, CoralFeature, CoralMushroomFeature, CoralPlantBlock, CoralTreeFeature, CoralWallFanBlock, CountDecorator, CountMultiLayerDecorator, CountNoiseDecorator, CountWithExtraChanceDecorator, CraftingTableBlock, CropBlock, CrossbowItem, CrossCollisionBlock, CryingObsidianBlock, CustomElytraTest.CustomElytra, CustomPlantTypeTest.CustomBlock, CustomPlantTypeTest.CustomPlantBlock, CustomRespawnTest.CustomRespawnBlock, CustomShieldTest.CustomShieldItem, CustomSignsTest.CustomStandingSignBlock, CustomSignsTest.CustomWallSignBlock, CustomTagTypesTest.Custom, CustomTooltipTest.CustomItemWithTooltip, DamageEnchantment, DarkOakTreePlacementDecorator, DataSerializerEntry, DaylightDetectorBlock, DeadBushBlock, DebugStickItem, DecoratedDecorator, DecoratedFeature, DefaultFlowerFeature, DefaultSurfaceBuilder, DeferredRegistryTest.Custom, DeltaFeature, DesertPyramidFeature, DesertWellFeature, DetectorRailBlock, DigDurabilityEnchantment, DiggerItem, DiggingEnchantment, DiodeBlock, DirectionalBlock, DirtPathBlock, DiskReplaceFeature, DispenserBlock, DoorBlock, DoubleHighBlockItem, DoublePlantBlock, DragonEggBlock, DripstoneClusterFeature, DropperBlock, DyeableArmorItem, DyeableHorseArmorItem, DyeItem, EggItem, ElytraItem, EmptyFluid, EmptyMapItem, EnchantedBookItem, EnchantedGoldenAppleItem, Enchantment, EnchantmentTableBlock, EndCityFeature, EndCrystalItem, EnderChestBlock, EnderEyeItem, EnderpearlItem, EndGatewayBlock, EndGatewayFeature, EndGatewayPlacementDecorator, EndIslandFeature, EndPodiumFeature, EndPortalBlock, EndPortalFrameBlock, EndRodBlock, EntityType, ErodedBadlandsSurfaceBuilder, ExperienceBottleItem, FaceAttachedHorizontalDirectionalBlock, FallingBlock, FarmBlock, Feature, FeatureDecorator, FenceBlock, FenceGateBlock, FillLayerFeature, FireAspectEnchantment, FireBlock, FireChargeItem, FireworkRocketItem, FireworkStarItem, FishingRodItem, FishingSpeedEnchantment, FletchingTableBlock, FlintAndSteelItem, FlowerBlock, FlowerPotBlock, FlowingFluid, Fluid, FoliagePlacerType, FoodOnAStickItem, ForgeChunkManagerTest.ChunkLoaderBlock, ForgeFlowingFluid, ForgeFlowingFluid.Flowing, ForgeFlowingFluid.Source, ForgeRegistryEntry, ForgeRegistryEntry.UncheckedRegistryEntry, ForgeSpawnEggItem, ForgeWorldType, FossilFeature, FrostedIceBlock, FrostWalkerEnchantment, FrozenOceanSurfaceBuilder, FullPotsAccessorDemo.DioriteFlowerPotBlock, FungusBlock, FurnaceBlock, GameData.BlockCallbacks.BlockDummyAir, GameMasterBlockItem, GeodeFeature, GiantTreeTaigaSurfaceBuilder, GlassBlock, GlazedTerracottaBlock, GlobalLootModifierSerializer, GlobalLootModifiersTest.DungeonLootEnhancerModifier.Serializer, GlobalLootModifiersTest.SilkTouchTestModifier.Serializer, GlobalLootModifiersTest.SmelterEnchantment, GlobalLootModifiersTest.SmeltingEnchantmentModifier.Serializer, GlobalLootModifiersTest.WheatSeedsConverterModifier.Serializer, GlowLichenBlock, GlowLichenFeature, GlowstoneFeature, GrassBlock, GravelBlock, GravellyMountainSurfaceBuilder, GravityAttributeTest.ItemGravityStick, GrindstoneBlock, GrowingPlantBlock, GrowingPlantBodyBlock, GrowingPlantFeature, GrowingPlantHeadBlock, HalfTransparentBlock, HangingEntityItem, HangingRootsBlock, HayBlock, HealthBoostMobEffect, HeightmapDecorator, HeightmapDoubleDecorator, HoeItem, HoneyBlock, HoneyBottleItem, HoneycombItem, HopperBlock, HorizontalDirectionalBlock, HorseArmorItem, HugeBrownMushroomFeature, HugeFungusFeature, HugeMushroomBlock, HugeRedMushroomFeature, IcebergFeature, IcebergPlacementDecorator, IceBlock, IcePatchFeature, IceSpikeFeature, IglooFeature, InfestedBlock, InfestedRotatedPillarBlock, InstantenousMobEffect, IronBarsBlock, Item, ItemFluidContainer, ItemFrameItem, ItemNameBlockItem, JigsawBlock, JigsawFeature, JukeboxBlock, JunglePyramidFeature, KelpBlock, KelpFeature, KelpPlantBlock, KnockbackEnchantment, KnowledgeBookItem, LadderBlock, LakeFeature, LakeLavaPlacementDecorator, LanternBlock, LargeDripstoneFeature, LavaCauldronBlock, LavaFluid, LavaFluid.Flowing, LavaFluid.Source, LayeredCauldronBlock, LeadItem, LeavesBlock, LecternBlock, LeverBlock, LightBlock, LightningRodBlock, LingeringPotionItem, LiquidBlock, LoomBlock, LootBonusEnchantment, MagmaBlock, MapItem, MelonBlock, MemoryModuleType, MendingEnchantment, MenuType, MilkBucketItem, MinecartItem, MineshaftFeature, MobBucketItem, MobEffect, MonsterRoomFeature, MossBlock, Motive, MountainSurfaceBuilder, MovingPistonBlock, MultifaceBlock, MultiShotEnchantment, MushroomBlock, MyceliumBlock, NameTagItem, NetherCappedSurfaceBuilder, NetherForestSurfaceBuilder, NetherForestVegetationFeature, NetherFortressFeature, NetherFossilFeature, NetherPortalBlock, NetherrackBlock, NetherSproutsBlock, NetherSurfaceBuilder, NetherWartBlock, NetherWorldCarver, NewFluidTest.FluidloggableBlock, NoiseBasedDecorator, NoOpFeature, NopePlacementDecorator, NopeSurfaceBuilder, NoteBlock, NyliumBlock, ObserverBlock, OceanMonumentFeature, OceanRuinFeature, OreBlock, OreFeature, OxygenEnchantment, ParticleType, PickaxeItem, PillagerOutpostFeature, PipeBlock, PistonBaseBlock, PistonHeadBlock, PlayerAttackKnockbackTest.KnockbackSwordItem, PlayerHeadBlock, PlayerHeadItem, PlayerWallHeadBlock, PointedDripstoneBlock, PoiType, PotatoBlock, Potion, PotionItem, PowderSnowBlock, PowderSnowCauldronBlock, PoweredBlock, PoweredRailBlock, PressurePlateBlock, ProjectileWeaponItem, ProtectionEnchantment, PumpkinBlock, QuickChargeEnchantment, RailBlock, RandomBooleanSelectorFeature, RandomPatchFeature, RandomSelectorFeature, RangedAttribute, RangeDecorator, RecordItem, RedstoneLampBlock, RedStoneOreBlock, RedstoneSidedConnectivityTest.EastRedstoneBlock, RedstoneTorchBlock, RedstoneWallTorchBlock, RedStoneWireBlock, RepeaterBlock, RepeatingDecorator, ReplaceBlobsFeature, ReplaceBlockFeature, RespawnAnchorBlock, RodBlock, RootedDirtBlock, RootsBlock, RootSystemFeature, RotatedPillarBlock, RuinedPortalFeature, SaddleItem, SandBlock, SaplingBlock, ScaffoldingBlock, ScaffoldingBlockItem, ScaffoldingTest.ScaffoldingMethodTestBlock, ScatteredOreFeature, Schedule, SculkSensorBlock, SeagrassBlock, SeagrassFeature, SeaPickleBlock, SeaPickleFeature, SensorType, ShapedRecipe.Serializer, ShapelessRecipe.Serializer, ShatteredSavanaSurfaceBuilder, ShearsItem, ShieldItem, ShipwreckFeature, ShovelItem, ShulkerBoxBlock, SignBlock, SignItem, SimpleBlockFeature, SimpleCookingSerializer, SimpleFoiledItem, SimpleParticleType, SimpleRandomSelectorFeature, SimpleRecipeSerializer, SingleItemRecipe.Serializer, SkullBlock, SlabBlock, SlimeBlock, SmallDripleafBlock, SmallDripstoneFeature, SmithingTableBlock, SmokerBlock, SnowAndFreezeFeature, SnowballItem, SnowLayerBlock, SnowyDirtBlock, SolidBucketItem, SoulFireBlock, SoulSandBlock, SoulSandValleySurfaceBuilder, SoulSpeedEnchantment, SoundEvent, SpawnEggItem, SpawnerBlock, SpectralArrowItem, SpikeFeature, SplashPotionItem, SpongeBlock, SporeBlossomBlock, Spread32Decorator, SpreadingSnowyDirtBlock, SpringFeature, SpyglassItem, SquareDecorator, StainedGlassBlock, StainedGlassPaneBlock, StairBlock, StandingAndWallBlockItem, StandingSignBlock, StatType, StemBlock, StemGrownBlock, StoneButtonBlock, StonecutterBlock, StrongholdFeature, StructureBlock, StructureFeature, StructureVoidBlock, SugarCaneBlock, SurfaceBuilder, SuspiciousStewItem, SwamplandHutFeature, SwampSurfaceBuilder, SweepingEdgeEnchantment, SweetBerryBushBlock, SwordItem, TallFlowerBlock, TallGrassBlock, TallSeagrassBlock, TargetBlock, ThornsEnchantment, ThrowablePotionItem, TieredItem, TintedGlassBlock, TippedArrowItem, TntBlock, TorchBlock, TrapDoorBlock, TrappedChestBlock, TreeDecoratorType, TreeFeature, TridentChannelingEnchantment, TridentImpalerEnchantment, TridentItem, TridentLoyaltyEnchantment, TridentRiptideEnchantment, TripWireBlock, TripWireHookBlock, TurtleEggBlock, TwistingVinesBlock, TwistingVinesFeature, TwistingVinesPlantBlock, UnderwaterCanyonWorldCarver, UnderwaterCaveWorldCarver, UnderwaterMagmaFeature, UntouchingEnchantment, UpgradeRecipe.Serializer, VanishingCurseEnchantment, VegetationPatchFeature, VerticalDecorator, VillageFeature, VillagerProfession, VineBlock, VinesFeature, VoidStartPlatformFeature, WallBannerBlock, WallBlock, WallSignBlock, WallSkullBlock, WallTorchBlock, WaterDepthThresholdDecorator, WaterFluid, WaterFluid.Flowing, WaterFluid.Source, WaterlilyBlock, WaterLilyBlockItem, WaterloggedVegetationPatchFeature, WaterWalkerEnchantment, WaterWorkerEnchantment, WeatheringCopperFullBlock, WeatheringCopperSlabBlock, WeatheringCopperStairBlock, WebBlock, WeepingVinesBlock, WeepingVinesFeature, WeepingVinesPlantBlock, WeightedPressurePlateBlock, WetSpongeBlock, WitherRoseBlock, WitherSkullBlock, WitherWallSkullBlock, WoodButtonBlock, WoodedBadlandsSurfaceBuilder, WoodlandMansionFeature, WoolCarpetBlock, WorldCarver, WritableBookItem, WrittenBookItem

public interface IForgeRegistryEntry<V>
  • Method Summary

    Modifier and Type
    Method
    Description
    A unique identifier for this entry, if this entry is registered already it will return it's official registry name.
    Determines the type for this entry, used to look up the correct registry in the global registries list as there can only be one registry per concrete class.
    Sets a unique name for this Item.
  • Method Details

    • setRegistryName

      V setRegistryName(ResourceLocation name)
      Sets a unique name for this Item. This should be used for uniquely identify the instance of the Item. This is the valid replacement for the atrocious 'getUnlocalizedName().substring(6)' stuff that everyone does. Unlocalized names have NOTHING to do with unique identifiers. As demonstrated by vanilla blocks and items. The supplied name will be prefixed with the currently active mod's modId. If the supplied name already has a prefix that is different, it will be used and a warning will be logged. If a name already exists, or this Item is already registered in a registry, then an IllegalStateException is thrown. Returns 'this' to allow for chaining.
      Parameters:
      name - Unique registry name
      Returns:
      This instance
    • getRegistryName

      @Nullable ResourceLocation getRegistryName()
      A unique identifier for this entry, if this entry is registered already it will return it's official registry name. Otherwise it will return the name set in setRegistryName(). If neither are valid null is returned.
      Returns:
      Unique identifier or null.
    • getRegistryType

      Class<V> getRegistryType()
      Determines the type for this entry, used to look up the correct registry in the global registries list as there can only be one registry per concrete class.
      Returns:
      Root registry type.