FireController1847
94cbf72e39
Re-add PlayerGiveXpEvent & PlayerChangeLevelEvent ( #6165 )
2019-10-14 10:37:44 -07:00
David Quintana
5e9380ab85
Fix forge blockstates and custom model loading ( #6154 )
...
* Reimplement forge blockstates variant through the use of a pseudo-model that handles the model loading, retexturing, custom data, etc. on behalf of the blockstates loader. This model gets injected into the model registry with an autogenerated unique name, to not collide with other model locations.
* Fix model loaders not being properly initialized by calling the reload method from the loader register function. In 1.12, registering a reload listener caused the listener to be called right away from the register method. This is not true anymore.
2019-10-08 00:18:29 +02:00
tterrag
2392a4c184
Fix new flower pot ctor not being usable with deferred register
2019-09-25 18:01:43 -04:00
tterrag
6fda1e968d
Make FlowerPotBlock extensible and reusable for mods
...
- Change static lookup map to an instance variable
- Add an instance variable for the "empty pot" for the current block
- Keep one instance of the lookup map between the empty pot and all its full versions
- Convert everything to use delegates
2019-09-17 19:57:58 -04:00
David Quintana
58335d7bc0
Minor fixes to the fluids ( #6150 )
...
* Fixed vanilla rendering of fluids to take into account the alpha bits of the color, and fix usages accordingly.
* Fixed missing texture derp.
2019-09-12 17:33:19 +02:00
David Quintana
b0c9d7cce9
Some (sadly breaking) improvements to the Fluid API ( #6110 )
...
* Some (sadly breaking) improvements to the API, after feedback and concerns provided by users:
- Moved calculation of the translation key to the FluidAttributes constructor, so that builders can be shared between still & flowing sub-fluids.
- Moved biome-based coloring to a dedicated FluidAttributes.Water variant, which is not used by default.
- Added logic to automatically gather fluid textures into the list of textures to bake.
- Patched BucketItem and FlowingFluidBlock to avoid eager access to the fluid objects.
- Added a ForgeFlowingFluid class, as a more user-friendly way to construct a new FlowingFluid.
2019-09-11 16:00:32 +02:00
LexManos
2c8c022034
Add a bunch of tags from the omnibus.
...
Fix test imports. And update patches for line numbers.
2019-09-03 18:51:09 -07:00
mcenderdragon
3f089e3add
Added gravity as attribute to Entities ( #5630 )
2019-09-03 13:20:44 -07:00
David Quintana
d9f6659f2c
Fluid rework derp fixes. ( #6098 )
...
* Fix nulls returning from non-null methods, and null-check of non-nullable values.
* Fix missed computation of the isEmpty flag in FluidStack
* Cleanup getAmount/isEmpty calls.
* Remove redundant suppliers. That info is readily available from the vanilla Fluid / FluidState.
2019-08-29 21:09:42 +02:00
David Quintana
a788e8a475
Fix license headers so `gradlew build` is happy.
2019-08-29 03:18:42 +02:00
David Quintana
b7e1cc5f6b
Fluid API rework ( #5983 )
...
- Moved forge fluids into FluidAttributes companion object to the vanilla Fluid. By gigaherz
- Redesigned the Fluid API to be closer to the Items API. By King Lemming
Co-authored-by: King Lemming <kinglemming@gmail.com>
2019-08-29 03:18:41 +02:00
LexManos
e784a7f606
Recipe system cleanup. ( #6014 )
2019-08-29 03:18:41 +02:00
cpw
1af7b7603d
Move fml's PlayerEvent and TickEvent to forge. Update
...
`import net.minecraftforge.fml.common.gameevent.PlayerEvent;`
to
`import net.minecraftforge.event.entity.player.PlayerEvent;`
and
`import net.minecraftforge.fml.common.gameevent.TickEvent;`
to
`import net.minecraftforge.event.TickEvent;`
Signed-off-by: cpw <cpw+github@weeksfamily.ca>
2019-08-04 22:34:14 -04:00
its_meow
50e411b82a
Add piston events ( #5798 )
2019-08-02 14:12:21 -07:00
cpw
c90b1732e9
Fix objloader registering at wrong time. Closes #5847 . Added test
...
class as suggested in the issue.
Note: most tests are commented out at the present time, pending
rework. Tests that work, work.
Signed-off-by: cpw <cpw+github@weeksfamily.ca>
2019-07-20 21:04:00 -04:00
tterrag
ef7b035f02
Fix ModelDataTest
2019-06-21 23:35:08 -04:00
tterrag
8c3e511538
Make sure test mods load, fix BlockstateRetextureTest
2019-06-21 19:35:32 -04:00
LexManos
f01b87fac7
Fix some compile errors in test classes.
2019-06-19 18:07:58 -07:00
tterrag
d5ee80a70a
Add IContainerFactory for reading custom container data on the client
2019-06-10 18:14:49 -04:00
tterrag
35cd89c00c
Fix issues preventing test mods loading
2019-06-09 00:19:29 -04:00
tterrag
892fea3df9
Add forge registry for container types, expose ScreenManager.registerFactory
2019-06-09 00:19:17 -04:00
LexManos
b74b72e44c
Fix NamespacedWrapper not delegating a new getter. Fixing data loading spam at world start.
...
Update red/yellow/green tags with new vanilla item names.
Reenabled test source directory in project and made ModelDataTest compile.
2019-06-07 19:34:16 -07:00
LexManos
eae0858de6
Fix build script producing duplicated eclipse source folders.
...
Fix not including userdev source in sources jar.
Update license header of files that need it.
Delete patches_old folders. Most are unneeded in 1.13+ as the systems they effected were changed significantly. Any that need to be readdressed can be done as PRs.
2019-05-13 19:11:24 -07:00
tterrag
9e39570d49
Add ModelDataTest to test mods.toml
2019-05-11 23:22:24 -04:00
tterrag
01a0674490
Finish model loader debug mod
2019-05-11 18:58:45 -04:00
tterrag
e482793f69
Comment out test Mod/EventBusSubscriber annotations, fix up ModelLoaderRegistryTest
2019-05-11 18:58:45 -04:00
tterrag
9209c3cbfe
Add new system for model data, replacing extended states ( #5564 )
2019-05-09 02:10:38 -04:00
tterrag
416bf9e3bf
Allow loading json constants outside of _constants
2019-04-25 19:22:43 -04:00
Thanh-Phuong
cb0cf2f04f
Add a few events pertaining to villages ( #5302 )
2019-04-24 01:07:02 -04:00
Tyler Hancock
2ea475ad31
Fix special spawn event not firing in many cases. ( #5389 )
...
Co-authored-by: tterrag <tterrag1098@gmail.com>
2019-04-23 21:10:37 -04:00
Christopher Krier
ca973f053f
Add EntityPlaceEvent ( #5057 )
...
Co-authored-by: tterrag <tterrag1098@gmail.com>
2019-04-23 19:58:09 -04:00
Ben Staddon
817546e4c8
Add a hook to allow continuously using items through stack changes ( #4834 )
2019-04-23 15:12:55 -04:00
Ben Staddon
f19fed0853
Add redirects to PotionEffect to respect registry replacement ( #5213 )
2019-04-23 14:47:47 -04:00
tterrag
65cfef1b2e
Fix potion remove event not always firing, add expiry event
2019-04-13 11:17:00 -04:00
mcenderdragon
914fe91db5
added PotionHooks, closes #3867 , #4375 ( #4614 )
2019-04-13 11:03:58 -04:00
ichttt
a67cce2f91
Add a hook for farmland watering ( #4891 )
2019-04-12 20:16:34 -04:00
Ben Staddon
fa708f93ee
Allow items to control the rate of repair from mending ( #5102 )
2019-04-12 13:26:15 -04:00
Ben Staddon
e376172312
Improve context provided by potion icon rendering hooks ( #5111 )
2019-04-12 11:05:34 -04:00
mezz
5fa732d223
Remove uses of java.awt ( #5591 )
...
`java.awt` will statically load itself when `java.awt.Color`, `java.awt.Dimension`, etc are loaded.
This conflicts with lwjgl3 and must be avoided (except for in mojang's server gui).
2019-03-25 12:06:20 -07:00
LexManos
ca72710937
Initial 1.13.2 update. Major thing to note is that Dimensions have been completely revamped.
...
DimensionType is not unique per Dimension. See DimensionManager for more details.
Vanilla now has a chunk loading system, so Forge's will need to be deprecated/adapted.
2019-02-14 15:08:53 -08:00
cpw
f83500db11
Its 2019. Update licence headers to match.
...
Signed-off-by: cpw <cpw+github@weeksfamily.ca>
2019-02-10 17:57:03 -05:00
m00nl1ght-dev
8084ca43b9
Port CommandEvent and custom entity selectors to 1.13 ( #5411 )
2019-02-08 17:41:50 -08:00
Justin
d2a3b5bed8
Fix RuntimeEnumExtender creating new enums with incorrect ordinal value ( #5402 )
2019-01-30 12:51:14 -08:00
cpw
56a3926b86
Fix up event naming, move them to sensible packages and document everything a bit.
2019-01-14 22:43:17 -05:00
XCompWiz
f2b54acd67
Allow providing a BufferedImage for banner render generation ( #5041 )
...
Ported to 1.13 using NativeImage
Co-authored-by: tterrag <tterrag1098@gmail.com>
2019-01-11 18:32:17 -05:00
Ben Staddon
c1bb5cb250
Patch PotionHelper to use registry delegates ( #5142 )
2019-01-11 18:32:17 -05:00
LexManos
440649bb95
Fix new launcher jar packaging.
...
Run license checker over new code.
2018-12-31 16:48:23 -08:00
mezz
dc12cda505
Clean progress bar code and fix TextureMap patch ( #5304 )
2018-12-28 18:05:05 -08:00
cpw
c6e7bbe18b
Use the maven artifact code rather than our very outdated copy
2018-10-03 22:47:07 -04:00
LexManos
a0e217b1dc
More because git likes to split to many
2018-09-21 02:17:20 -07:00
cpw
77c3310711
Zeroth pass on 1.13
2018-09-05 12:56:01 -07:00
cpw
689ebd8036
Dediserver runs and talks to clients.
2018-09-05 12:35:31 -07:00
cpw
506b51f189
A much more straightforward networking system.
2018-09-05 12:33:38 -07:00
cpw
4636365e30
Some beginnings of a network again.
2018-09-05 12:31:47 -07:00
cpw
d0ab0e166c
Well, it works, for a game, now.
2018-09-05 12:30:02 -07:00
cpw
06b16aaa19
Some more stuffs. ObjectHolder's replacement?
2018-09-05 11:58:31 -07:00
cpw
baa9dfe55a
Things. they work. Obviously still WAY more to do.
2018-09-05 11:53:54 -07:00
cpw
1b1ee6f0b8
more things. Moving ModContainer around.
2018-09-05 11:49:48 -07:00
cpw
3b78e97ad8
Fidgeting while the world burns 🔥 🔥 🔥 🔥 🔥 🔥
2018-09-05 11:40:48 -07:00
cpw
f942eb184a
WOW 😲 such broken. Many brokes.
2018-09-05 11:40:47 -07:00
cpw
c1f0e1b68f
Holy Moly, it's a big fat commit of broken code!
2018-09-05 11:16:33 -07:00
TheIllusiveC4
8e7b5be3d4
New SleepingTimeCheckEvent to add yet another way to control sleeping. ( #5013 )
2018-08-16 13:14:34 -07:00
Ben Staddon
1171668c25
Allow sending packets to client from ServerConnectionFromClientEvent ( #4991 )
2018-08-16 13:03:32 -07:00
Karthas077
9e30f4f6f9
Added Swim Speed Attribute to EntityLivingBase ( #4990 )
2018-07-28 19:24:30 -07:00
Ben Staddon
14bfeefb4d
Allow custom SpawnPlacementType registration ( #4973 )
2018-07-28 17:51:44 -07:00
Ben Staddon
2786cd279c
Update and clean up Forge fluid render model ( #4763 )
2018-07-17 20:37:20 -07:00
Marvin Rösch
c3aa99677a
Move some test mods into appropriate packages ( #5006 )
2018-07-04 19:58:55 -07:00
LexManos
0cf5ef221c
Run licenseFormat to apply license header to all files.
2018-07-01 14:17:31 -07:00
LexManos
1007d3e9c5
Added Fluid Place Block Event for when fluid changes blocks in world. ( #4627 )
2018-06-27 12:06:55 -07:00
UnRealDinnerbone
c001d2dbf6
Add Farmland Trample Event ( #4895 )
2018-06-27 11:31:38 -07:00
Ben Staddon
a749861cb2
Change item model loading priority to fix model conflicts ( #4898 )
2018-06-27 11:08:38 -07:00
Ben Staddon
43895d773e
Add validation to recipe registry ( #4957 )
2018-06-26 22:00:53 -07:00
sinus
3c4efa1ae7
Fixes parameter inconsistency in IFieldWrapper ( Fixes #4325 ) ( #4766 )
2018-05-17 04:15:57 -07:00
Ben Staddon
1d863cdefc
Check name prefix used for tile entity registrations ( #4681 )
2018-05-16 22:52:32 -07:00
Ben Staddon
40b567e962
Add an event to control nether portal formation ( #4735 )
2018-05-16 22:48:14 -07:00
Ben Staddon
d0566ebadc
Suppress firing events at load time if an error has already occurred ( #4801 )
2018-04-12 17:18:43 -07:00
Vincent Lee
1d7c04daeb
Add a FML outbound target for all players tracking a point or entity in the world. Closes #3677 ( #4631 )
2018-04-01 01:42:55 -07:00
coolsquid
f5c0b894bf
Prevent EntityPlayer.attackEntityFrom from firing LivingAttackEvent twice ( #4661 )
2018-04-01 01:12:46 -07:00
Judge40
b8e411674b
Create event for overriding mob griefing flag based on entity. ( #4710 )
2018-04-01 00:48:25 -07:00
Parker Young
db3b2549e2
Update ItemHandlerHelper.giveItemToPlayer to allow player who picked up the item to hear the sound as well ( #4720 )
2018-04-01 00:43:39 -07:00
Matti Ruohonen
e82a7605dc
Add a WorldProvider#canSleepHere() method to allow providers to control sleeping in beds separately from re-spawning. ( #4741 )
2018-04-01 00:27:58 -07:00
TheCyberBrick
11e623bf4d
Added chunk instance to ChunkWatchEvent ( #4805 )
2018-04-01 00:07:01 -07:00
mezz
cfe3867a70
Fix issues with the test mods
2018-03-29 22:33:40 -07:00
Marvin Rösch
297a1eb766
Reorganise test mods into packages ( #4706 )
2018-03-27 22:09:10 -07:00
Ben Staddon
6ed2879842
Fix integrated server crash not stopping client ( #4796 )
2018-03-13 16:29:12 -07:00
mcenderdragon
bf50f8bc30
Add function to BufferBuilder to directly insert byte data. Closes #4722
2018-02-13 22:00:25 -08:00
mezz
d650e454b1
Minor cleanup for TestAnnotationParser
2018-02-11 11:47:28 -08:00
LexManos
816d33de28
Initial implementation of JSON based annotation scanning.
...
Disabled by default for now, until proven to be fully function.
Enable using -Dfml.enableJsonAnnotations=true
2018-02-07 00:43:32 -08:00
Daomephsta
3b580f643e
Fix some test mods preventing Forge server-Vanilla client connections ( #4616 )
2018-01-23 21:28:56 -08:00
mezz
603903db50
Fix errors in preInit being lost when followed by a crash in fireRegistryEvents or objectHolder
2018-01-22 23:03:44 -08:00
Vincent Lee
47a72f12f6
Expose CriteriaTriggers.register, closes #4109 ( #4634 )
2018-01-18 13:21:17 -08:00
alexbobp
1d48e06798
Add MobSpawnerBaseLogic reference to SpecialSpawn and CheckSpawn events ( #4600 )
2018-01-18 13:06:53 -08:00
Justin
ff8ba90da3
Fix default GUIConfig displaying child categories twice ( #4599 )
2018-01-18 13:03:37 -08:00
Tyler Hancock
01f573dbaa
Added a tooltip color event. ( #4595 )
2018-01-18 12:54:35 -08:00
mezz
bc3bbe3d84
Avoid copying Forge Registry keys, values, and entries ( #4545 )
2018-01-18 12:46:05 -08:00
covers1624
2d424ed2e1
Block::addRunningEffects ( #4248 )
2018-01-18 12:38:00 -08:00
Daomephsta
adf3c7164a
[1.12.x] Implement hooks allowing mods to add horse armor. Partially addresses #3975 . ( #3994 )
2018-01-18 12:04:37 -08:00
mezz
4b65807bfa
Fix FML error logging for mods that crash during FMLLoadCompleteEvent
2018-01-15 21:18:38 -08:00
mezz
d0bdb23300
Minor code and documentation cleanup. ( #4664 )
2018-01-12 23:54:29 -08:00
LexManos
18609f57ac
Fix missing call to release() in the event channel handler ( #4513 )
...
(reverted from commit cd99957627
)
2017-12-18 16:04:34 -08:00
Wasinthorn Suksri
02855f7d74
Added Custom Slime Block hook for Piston. ( #4520 )
2017-12-16 18:38:53 -08:00
Daomephsta
4ab9929593
Add some extra context to Advancements/Minecart/Fishing/TileEntity loot handlers.( #4443 )
2017-12-16 18:38:03 -08:00
Melonslise
bbf1bef7d3
Added LivingKnockBackEvent event to allow better control over knock back effects. ( #4503 )
2017-12-16 18:03:45 -08:00
Ben Staddon
cd99957627
Fix missing call to release() in the event channel handler ( #4513 )
2017-12-16 18:00:35 -08:00
Joseph C. Sible
14a7d66024
Deprecate passing a class to CapabilityManager::register ( #4574 )
2017-12-16 17:01:04 -08:00
jabelar
07c4da8f36
Added color as field with setter to Fluid class. ( #4460 )
2017-12-08 02:18:45 -08:00
Anthony Lomeli
bd494af7ee
[1.12] Add Advancement Event ( #4467 )
2017-12-05 14:05:05 -08:00
Draco18s
ccc44956fd
Fix for the EntityItemPickupEvent having 0 count item when event is fired. ( #4549 )
2017-11-30 21:46:54 -08:00
LexManos
44d0e9f05d
Fix more bad shapeless recipe matching. Closes #4557
2017-11-26 14:50:57 -08:00
LexManos
89db87dbfc
Create custom shapeless recipe matching system. Should solve #4516 damageable items in shapeless recipes.
2017-11-22 13:26:02 -08:00
covers1624
c16906f8d8
Fix BufferBuilder not expanding under some conditions. ( #4538 )
2017-11-20 11:31:56 -08:00
LexManos
fc87d83d73
Make Ingredient explode wildcard values like OreIngredient.
...
Fixes some issues related to Grums order fix for Shapeless recipes.
Other more advanced usages need to be documented and tested.
2017-11-14 00:10:33 -08:00
Ben Staddon
6192bf48ae
Fix more test mod warnings ( #4477 )
2017-11-02 23:29:31 -07:00
Bartek Bok
dd69f0623c
Add LivingDamageEvent ( #4349 )
2017-10-31 15:29:19 -07:00
Bartek Bok
6f49568c98
Add InputUpdateEvent ( #4356 )
2017-10-31 11:47:47 -07:00
Ben Staddon
31655b3a7d
[1.12] Replace ThrowableImpactEvent with a more generic version ( #4040 )
2017-10-31 11:34:48 -07:00
joeflatt
7d333eb100
Fixed property losing state after rename. ( #4123 )
2017-10-31 11:30:39 -07:00
Philipp Provenzano
aa2480c7a1
Allow custom selector types to be defined ( #4259 )
2017-10-31 11:28:11 -07:00
AEnterprise
22ea5a23ad
Improve performance of World.collidesWithAnyBlock ( #4286 )
2017-10-31 11:20:59 -07:00
Vincent Lee
6d946fa088
Move reach distance to an attribute ( #4331 )
2017-10-31 11:16:22 -07:00
Ben Staddon
43749d3fd1
Further reduce quad count of generated item models ( #4448 )
2017-10-31 11:02:09 -07:00
jabelar
61dea7f4c0
Changed BlockFluidBase "fog" color use color from Fluid getColor() method ( #4462 )
2017-10-31 10:46:40 -07:00
Ben Staddon
5733cd364e
Fix some more test mod warnings ( #4469 )
2017-10-20 22:28:26 -07:00
Matthew Mirvish
e283d51e28
[1.12.x] [Animation API] Add rotation origin variable ( #4466 )
2017-10-20 22:27:35 -07:00
Ben Staddon
f2adf0100c
Fix some warnings produced by test mods ( #4456 )
2017-10-08 17:31:10 -07:00
mezz
083daeb5ed
Update mcp mappings to 20171003
2017-10-03 22:08:36 -07:00
mezz
f494117453
[1.12] Add support for client & server dependencies for mods ( #4403 )
2017-10-02 22:13:30 -07:00
mezz
cf39ff18e1
Add Item.getModId to show which mod is associated with a subitem ( #4330 )
2017-10-02 22:08:16 -07:00
Erlend Åmdal
8a285e0fed
Add Chunk capabilities ( #4228 )
2017-10-02 20:24:11 -07:00
Samuel-Harbord
21e4803947
Fix test mod shield JSON incorrect bottom face UV's ( #4295 )
2017-09-23 14:27:11 -07:00
Tyler Hancock
ceaa9ba52f
Fix chunk gen mobs not firing the CheckSpawn event. Closes #4394 ( #4396 )
2017-09-16 21:30:38 -07:00
Ben Staddon
9717882563
Fix up test mods ( #4399 )
2017-09-16 20:08:25 -07:00
LexManos
036191cd52
Fixed ShapedOre recipes not laying out correctly with the guidebook.
2017-09-14 14:32:03 -07:00
Tyler Hancock
883109182d
Fixed search tabs using wrong contents. ( #4393 )
2017-09-12 11:57:12 -07:00
Benjamin K
45c2ff5329
Fix CustomModLoadingErrorDisplayScreen not being handled during init or preinit. ( #4320 )
2017-09-06 14:14:50 -07:00
Vincent Lee
44f35fa8b1
Fix vanilla map pixel data being used in various places ( #4068 )
2017-09-06 13:54:00 -07:00
Choonster TheMage
d85fcb26c2
Fix FieldWrapper.MapWrapper initialising wrong category ( #4335 )
2017-08-30 20:57:17 -07:00
Choonster TheMage
cb051f7893
Don't parse category names as regular expressions in FieldWrapper.MapWrapper ( #4334 )
2017-08-30 20:56:15 -07:00
Marvin Rösch
43e24c3eb4
Tabulate crash report mod list and add signature information ( #4251 )
2017-08-18 17:28:58 -05:00
LexManos
28e341002f
Add support for server side only recipes, as well as detection of vanilla client recipe book filter to prevent errors.
2017-08-15 05:10:07 -07:00
Bartosz Skrzypczak
68a10b3037
Fix splitting big packets skipping one byte per additional part ( #4301 )
2017-08-13 15:23:22 -05:00
Thanh-Phuong
ee449e427c
Add support for oredict item predicates in advancements, and add a registry for item predicates ( #4188 )
2017-08-09 15:20:45 -05:00
KnightMiner
82d735e43a
Add support for running IModel.retexture() on models from blockstates ( #4200 )
2017-08-09 15:18:35 -05:00
Bartek Bok
d14a8724b0
Fix invalid FastTESR quad ordering ( #4267 )
2017-08-09 15:18:17 -05:00
Choonster TheMage
611cb0d99c
Continue loading mod recipes and advancements after encountering an error ( #4277 )
2017-08-09 15:17:48 -05:00
howtonotwin
639589703d
Add smarter getter for block slipperiness ( #4116 )
...
Fixed MC-119811, Boats rubber banding when dismounted.
2017-08-01 16:25:28 -05:00
covers1624
099bbd479a
Add GuiContainer Foreground render event. ( #4127 )
2017-08-01 16:23:08 -05:00
mcenderdragon
c8379da83b
Added CriticalHitEvent to allow more control over whether a attack is a critical or not, and what damage it does.
2017-08-01 14:13:37 -05:00
Xalcon
173e929173
Added pages to the advancements GUI to allow for unlimited root advancements. ( #4183 )
2017-08-01 13:43:24 -05:00
Ben Staddon
78828246f5
Fix some broken test mods ( #4245 )
2017-07-29 23:04:02 -07:00