Package net.minecraftforge.registries
Interface IForgeRegistryEntry<V>
-
- All Known Subinterfaces:
IRecipeSerializer<T>
- All Known Implementing Classes:
AbsorptionEffect
,AbstractBannerBlock
,AbstractBigMushroomFeature
,AbstractBlock
,AbstractBodyPlantBlock
,AbstractButtonBlock
,AbstractChestBlock
,AbstractCoralPlantBlock
,AbstractFireBlock
,AbstractFurnaceBlock
,AbstractGlassBlock
,AbstractMapItem
,AbstractPlantBlock
,AbstractPressurePlateBlock
,AbstractRailBlock
,AbstractSignBlock
,AbstractSkullBlock
,AbstractSphereReplaceConfig
,AbstractTopPlantBlock
,Activity
,AirBlock
,AirItem
,AnvilBlock
,AquaAffinityEnchantment
,ArmorItem
,ArmorStandItem
,ArrowItem
,AttachedStemBlock
,AttackDamageEffect
,Attribute
,AxeItem
,BadlandsSurfaceBuilder
,BambooBlock
,BambooFeature
,BambooSaplingBlock
,BannerBlock
,BannerItem
,BannerPatternItem
,BarrelBlock
,BarrierBlock
,BasaltColumnFeature
,BasaltDeltasStructure
,BasaltDeltasSurfaceBuilder
,BasaltPillarFeature
,BasicParticleType
,BastionRemantsStructure
,BeaconBlock
,BedBlock
,BedItem
,BeehiveBlock
,BeetrootBlock
,BellBlock
,BigBrownMushroomFeature
,BigRedMushroomFeature
,BindingCurseEnchantment
,Biome
,BlastFurnaceBlock
,Block
,BlockBlobFeature
,BlockItem
,BlockNamedItem
,BlockPileFeature
,BlockPlacerType
,BlockStateProviderType
,BlockWithContextFeature
,BlueIceFeature
,BoatItem
,BoneMealItem
,BonusChestFeature
,BookItem
,BowItem
,BreakableBlock
,BrewingStandBlock
,BubbleColumnBlock
,BucketItem
,BuriedTreasureStructure
,BushBlock
,CactusBlock
,CakeBlock
,CampfireBlock
,CanyonWorldCarver
,CarpetBlock
,CarrotBlock
,CartographyTableBlock
,CarvedPumpkinBlock
,CauldronBlock
,CaveEdge
,CaveWorldCarver
,ChainBlock
,ChancePlacement
,ChannelingEnchantment
,ChestBlock
,ChorusFlowerBlock
,ChorusFruitItem
,ChorusPlantBlock
,ChorusPlantFeature
,ChunkStatus
,CocoaBlock
,CommandBlockBlock
,ComparatorBlock
,CompassItem
,ComposterBlock
,ConcretePowderBlock
,ConditionalRecipe.Serializer
,ConduitBlock
,ContainerBlock
,ContainerType
,CookingRecipeSerializer
,CoralBlock
,CoralClawFeature
,CoralFanBlock
,CoralFeature
,CoralFinBlock
,CoralMushroomFeature
,CoralPlantBlock
,CoralTreeFeature
,CoralWallFanBlock
,CountExtraPlacement
,CountMultilayerPlacement
,CountNoiseBiasedPlacement
,CountNoisePlacement
,CountPlacement
,CraftingTableBlock
,CropsBlock
,CrossbowItem
,CryingObsidianBlock
,CustomElytraTest.CustomElytra
,CustomPlantTypeTest.CustomBlock
,CustomPlantTypeTest.CustomPlantBlock
,CustomRespawnTest.CustomRespawnBlock
,CustomSignsTest.CustomStandingSignBlock
,CustomSignsTest.CustomWallSignBlock
,CustomTagTypesTest.Custom
,DamageEnchantment
,DarkOakTreePlacement
,DataSerializerEntry
,DaylightDetectorBlock
,DeadBushBlock
,DeadCoralPlantBlock
,DeadCoralWallFanBlock
,DebugStickItem
,DecoratedFeature
,DecoratedPlacement
,DefaultFlowersFeature
,DefaultSurfaceBuilder
,DeferredRegistryTest.Custom
,DepthAveragePlacement
,DepthStriderEnchantment
,DesertPyramidStructure
,DesertWellsFeature
,DetectorRailBlock
,DirectionalBlock
,DispenserBlock
,DoorBlock
,DoublePlantBlock
,DragonEggBlock
,DropperBlock
,DungeonsFeature
,DyeableArmorItem
,DyeableHorseArmorItem
,DyeItem
,Effect
,EfficiencyEnchantment
,EggItem
,ElytraItem
,EmptyFluid
,EnchantedBookItem
,EnchantedGoldenAppleItem
,EnchantingTableBlock
,Enchantment
,EndCityStructure
,EnderChestBlock
,EnderCrystalItem
,EnderEyeItem
,EnderPearlItem
,EndGateway
,EndGatewayBlock
,EndGatewayFeature
,EndIsland
,EndIslandFeature
,EndPodiumFeature
,EndPortalBlock
,EndPortalFrameBlock
,EndRodBlock
,EndSpikeFeature
,EntityType
,ErodedBadlandsSurfaceBuilder
,ExperienceBottleItem
,FallingBlock
,FarmlandBlock
,Feature
,FenceBlock
,FenceGateBlock
,FilledMapItem
,FillLayerFeature
,FireAspectEnchantment
,FireBlock
,FireChargeItem
,FirePlacement
,FireworkRocketItem
,FireworkStarItem
,FishBucketItem
,FishingRodItem
,FlameEnchantment
,FletchingTableBlock
,FlintAndSteelItem
,FlowerBlock
,FlowerPotBlock
,FlowersFeature
,FlowingFluid
,FlowingFluidBlock
,Fluid
,FoliagePlacerType
,ForgeChunkManagerTest.ChunkLoaderBlock
,ForgeFlowingFluid
,ForgeFlowingFluid.Flowing
,ForgeFlowingFluid.Source
,ForgeRegistryEntry
,ForgeRegistryEntry.UncheckedRegistryEntry
,ForgeSpawnEggItem
,ForgeWorldType
,FortressStructure
,FossilsFeature
,FourWayBlock
,FrostedIceBlock
,FrostWalkerEnchantment
,FrozenOceanSurfaceBuilder
,FullPotsAccessorDemo.DioriteFlowerPotBlock
,FungusBlock
,FurnaceBlock
,GameData.BlockCallbacks.BlockDummyAir
,GiantTreeTaigaSurfaceBuilder
,GlassBlock
,GlassBottleItem
,GlazedTerracottaBlock
,GlobalLootModifierSerializer
,GlobalLootModifiersTest.DungeonLootEnhancerModifier.Serializer
,GlobalLootModifiersTest.SilkTouchTestModifier.Serializer
,GlobalLootModifiersTest.SmelterEnchantment
,GlobalLootModifiersTest.SmeltingEnchantmentModifier.Serializer
,GlobalLootModifiersTest.WheatSeedsConverterModifier.Serializer
,GlowstoneBlobFeature
,GlowstonePlacement
,GrassBlock
,GrassPathBlock
,GravelBlock
,GravellyMountainSurfaceBuilder
,GravityAttributeTest.ItemGravityStick
,GrindstoneBlock
,HangingEntityItem
,HayBlock
,HealthBoostEffect
,Height4To32
,HeightmapBasedPlacement
,HeightmapPlacement
,HeightmapSpreadDoublePlacement
,HeightmapWorldSurfacePlacement
,HoeItem
,HoneyBlock
,HoneyBottleItem
,HopperBlock
,HorizontalBlock
,HorizontalFaceBlock
,HorseArmorItem
,HugeFungusFeature
,HugeMushroomBlock
,IceAndSnowFeature
,IcebergFeature
,IcebergPlacement
,IceBlock
,IcePathFeature
,IceSpikeFeature
,IglooStructure
,ImpalingEnchantment
,InfinityEnchantment
,InstantEffect
,Item
,ItemFluidContainer
,ItemFrameItem
,JigsawBlock
,JigsawStructure
,JukeboxBlock
,JunglePyramidStructure
,KelpBlock
,KelpFeature
,KelpTopBlock
,KnockbackEnchantment
,KnowledgeBookItem
,LadderBlock
,LakeLava
,LakesFeature
,LakeWater
,LanternBlock
,LavaFluid
,LavaFluid.Flowing
,LavaFluid.Source
,LeadItem
,LeavesBlock
,LecternBlock
,LeverBlock
,LilyPadBlock
,LilyPadItem
,LingeringPotionItem
,LoomBlock
,LootBonusEnchantment
,LoyaltyEnchantment
,LureEnchantment
,MagmaBlock
,MapItem
,MelonBlock
,MemoryModuleType
,MendingEnchantment
,MilkBucketItem
,MinecartItem
,MineshaftStructure
,MountainSurfaceBuilder
,MovingPistonBlock
,MultipleWithChanceRandomFeature
,MultishotEnchantment
,MushroomBlock
,MusicDiscItem
,MyceliumBlock
,NameTagItem
,NetherackBlobReplacementStructure
,NetherCaveCarver
,NetherForestsSurfaceBuilder
,NetherFossilStructure
,NetherMagma
,NetherPortalBlock
,NetherrackBlock
,NetherRootsBlock
,NetherSproutsBlock
,NetherSurfaceBuilder
,NetherVegetationFeature
,NetherWartBlock
,NewFluidTest.FluidloggableBlock
,NoExposedOreFeature
,NoOpFeature
,NoopSurfaceBuilder
,NoteBlock
,NyliumBlock
,ObserverBlock
,OceanMonumentStructure
,OceanRuinStructure
,OnAStickItem
,OperatorOnlyItem
,OreBlock
,OreFeature
,PaintingType
,PaneBlock
,ParticleType
,Passthrough
,PickaxeItem
,PiercingEnchantment
,PillagerOutpostStructure
,PistonBlock
,PistonHeadBlock
,Placement
,PlayerAttackKnockbackTest.KnockbackSwordItem
,PointOfInterestType
,PotatoBlock
,Potion
,PotionItem
,PoweredRailBlock
,PowerEnchantment
,PressurePlateBlock
,ProtectionEnchantment
,PumpkinBlock
,PunchEnchantment
,QuickChargeEnchantment
,RailBlock
,RandomPatchFeature
,RangeBiasedPlacement
,RangedAttribute
,RangePlacement
,RangeVeryBiasedPlacement
,RedstoneBlock
,RedstoneDiodeBlock
,RedstoneLampBlock
,RedstoneOreBlock
,RedstoneTorchBlock
,RedstoneWallTorchBlock
,RedstoneWireBlock
,RepeaterBlock
,ReplaceBlockFeature
,RespawnAnchorBlock
,RespirationEnchantment
,RiptideEnchantment
,RotatedPillarBlock
,RuinedPortalStructure
,SaddleItem
,SandBlock
,SaplingBlock
,ScaffoldingBlock
,ScaffoldingItem
,ScaffoldingTest.ScaffoldingMethodTestBlock
,Schedule
,SeaGrassBlock
,SeaGrassFeature
,SeaPickleBlock
,SeaPickleFeature
,SensorType
,ShapedRecipe.Serializer
,ShapelessRecipe.Serializer
,ShatteredSavannaSurfaceBuilder
,ShearsItem
,ShieldItem
,ShipwreckStructure
,ShootableItem
,ShovelItem
,ShulkerBoxBlock
,SignItem
,SilkTouchEnchantment
,SilverfishBlock
,SimpleFoiledItem
,SimpleHeightmapBasedPlacement
,SimplePlacement
,SingleItemRecipe.Serializer
,SingleRandomFeatureConfig
,SixWayBlock
,SkullBlock
,SkullItem
,SkullPlayerBlock
,SkullWallPlayerBlock
,SlabBlock
,SlimeBlock
,SmithingRecipe.Serializer
,SmithingTableBlock
,SmokerBlock
,SnowballItem
,SnowBlock
,SnowyDirtBlock
,SoulFireBlock
,SoulSandBlock
,SoulSandValleySurfaceBuilder
,SoulSpeedEnchantment
,SoundEvent
,SoupItem
,SpawnEggItem
,SpawnerBlock
,SpecialRecipeSerializer
,SpectralArrowItem
,SphereReplaceFeature
,SplashPotionItem
,SpongeBlock
,Spread32AbovePlacement
,SpreadableSnowyDirtBlock
,SpringFeature
,SquarePlacement
,StainedGlassBlock
,StainedGlassPaneBlock
,StairsBlock
,StandingSignBlock
,StatType
,StemBlock
,StemGrownBlock
,StoneButtonBlock
,StonecutterBlock
,StrongholdStructure
,Structure
,StructureBlock
,StructureVoidBlock
,SugarCaneBlock
,SurfaceBuilder
,SuspiciousStewItem
,SwampHutStructure
,SwampSurfaceBuilder
,SweepingEnchantment
,SweetBerryBushBlock
,SwordItem
,TallBlockItem
,TallFlowerBlock
,TallGrassBlock
,TallSeaGrassBlock
,TargetBlock
,ThornsEnchantment
,ThrowablePotionItem
,TieredItem
,TileEntityType
,TippedArrowItem
,TNTBlock
,ToolItem
,TopSolidOnce
,TorchBlock
,TrapDoorBlock
,TrappedChestBlock
,TreeDecoratorType
,TreeFeature
,TridentItem
,TripWireBlock
,TripWireHookBlock
,TurtleEggBlock
,TwistingVineFeature
,TwistingVinesBlock
,TwistingVinesTopBlock
,TwoFeatureChoiceFeature
,UnbreakingEnchantment
,UnderwaterCanyonWorldCarver
,UnderwaterCaveWorldCarver
,ValleySurfaceBuilder
,VanishingCurseEnchantment
,VillagerProfession
,VillageStructure
,VineBlock
,VinesFeature
,VoidStartPlatformFeature
,WallBannerBlock
,WallBlock
,WallOrFloorItem
,WallSignBlock
,WallSkullBlock
,WallTorchBlock
,WaterFluid
,WaterFluid.Flowing
,WaterFluid.Source
,WebBlock
,WeepingVineFeature
,WeepingVinesBlock
,WeepingVinesTopBlock
,WeightedPressurePlateBlock
,WetSpongeBlock
,WitherRoseBlock
,WitherSkeletonSkullBlock
,WitherSkeletonWallSkullBlock
,WoodButtonBlock
,WoodedBadlandsSurfaceBuilder
,WoodlandMansionStructure
,WorldCarver
,WritableBookItem
,WrittenBookItem
public interface IForgeRegistryEntry<V>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ResourceLocation
getRegistryName()
A unique identifier for this entry, if this entry is registered already it will return it's official registry name.java.lang.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.V
setRegistryName(ResourceLocation name)
Sets a unique name for this Item.
-
-
-
Method Detail
-
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
java.lang.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.
-
-