LexManos
931ce0aa3b
Bump version for RB.
2018-02-02 19:56:31 -08:00
alexbobp
1d48e06798
Add MobSpawnerBaseLogic reference to SpecialSpawn and CheckSpawn events ( #4600 )
2018-01-18 13:06:53 -08:00
MineMaarten
dbf2beb6fa
Moved firing the MinecartInteractEvent from individual subclasses up to EntityMinecart, which as a result automatically supports EntityMinecartMobSpawner and EntityMinecartTNT. ( #4583 )
2018-01-18 12:52:46 -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
d0bdb23300
Minor code and documentation cleanup. ( #4664 )
2018-01-12 23:54:29 -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
kashike
441ece67bd
Delay egg creation to avoid null statistics ( #4508 )
2017-12-16 18:01:58 -08:00
Ben Staddon
622c17ff04
Add missing nullability annotations to some Forge-added methods ( #4578 )
2017-12-16 16:59:54 -08:00
BillyGalbreath
5cb01b7142
Allow EntityFishHook to spawn water particles in all liquids that use Material.WATER ( #4585 )
2017-12-16 16:49:21 -08:00
Ben Staddon
eda4fb231b
Clean up capability checking for entities ( #4591 )
2017-12-13 22:56:01 -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
Vincent Lee
7a31b10364
Non-player entities now respect WorldProvider.getMovementFactor, closes #4470 ( #4471 )
2017-11-15 13:32:41 -08:00
Bartek Bok
d060747fad
Fix NPE when player tries to sleep without bed ( #4487 )
2017-11-09 14:30:36 -08:00
Bartek Bok
dd69f0623c
Add LivingDamageEvent ( #4349 )
2017-10-31 15:29:19 -07:00
Ben Staddon
31655b3a7d
[1.12] Replace ThrowableImpactEvent with a more generic version ( #4040 )
2017-10-31 11:34:48 -07:00
Vincent Lee
6d946fa088
Move reach distance to an attribute ( #4331 )
2017-10-31 11:16:22 -07:00
Ben Staddon
f8e375279d
Fix killing blow causing combat tracker to lose data (MC-121048) ( #4452 )
2017-10-31 10:59:04 -07:00
Landmaster
b4676f5a0b
Add hook to configure EntityEquipmentSlot for item.
2017-10-02 15:54:01 -07:00
Ben Staddon
f3273ca0c9
Store entity data for dormant chunks using NBT ( #4162 )
2017-10-02 15:17:37 -07:00
LexManos
50265786b2
MC 1.12.2 update.
2017-09-18 14:35:45 -07:00
Vincent Lee
44f35fa8b1
Fix vanilla map pixel data being used in various places ( #4068 )
2017-09-06 13:54:00 -07:00
LexManos
f73c7cb764
1.12.1 Update, Not much modder facing changes, 1.12 mods should load and run fine on this version.
2017-08-03 17:30:43 -07: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
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
P3pp3rF1y
d3fa82c18a
Allow sneaking to bypass villager interaction GUI. ( #4193 )
2017-08-01 13:29:19 -05:00
P3pp3rF1y
8aa78da4de
Limit some server to client update packets for Item Capabilities ( #4252 )
2017-08-01 12:46:04 -05:00
mezz
32dc726df1
Prevent player from dying infinitely due to zero max health (MC-119183)
2017-07-20 21:54:46 -07:00
Madsthunder
ad15209f8d
Allow support for custom Shields and Shield disabling weapons.
2017-07-20 16:44:37 -05:00
Ben Staddon
9a09ff68aa
Remove some deprecated methods and clean up
2017-06-25 22:30:18 -07:00
KingLemming
c0188d3228
Use instanceof ItemFishingRod instead of item equality ( #4060 )
2017-06-24 01:26:36 -07:00
TechnicianLP
f670ec4f0b
Fix onBlockClicked handler firing twice and Item.onArmorTick in the wrong place ( #4037 )
2017-06-24 01:01:28 -07:00
Ben Staddon
286f6a910b
Fire AnimalTameEvent for parrots ( #4003 )
2017-06-23 23:11:47 -07:00
LexManos
d032a34aaa
Fix conflicts
2017-06-23 16:59:57 -05:00
LexManos
a26d89c876
First pass of registry rewrite.
...
Tests do not run yet.
Things of note:
Removed the idea of substitutions, just register multiple items with the same name they will override each other like a normal map.
Decoupled Forge registries from vanilla classes. They now use bouncer classes. MODDERS SHOULD NEVER USE THESE
Introduced more stringent registry locking. As it sits things are only allowed to be registered during the RegistryEvent.Registry phases!
This is to force modders to split up their registrations, and pave the way for calling these functions multiple times during a single MC lifecycle.
ObjectHolder, Missing Mappings, etc... *should* now work for all registry types, nothing should be special cased to Blocks/Items anymore.
Added optional generic dummy factory to registries, to allow registry creators the ability to dummy more then just Blocks.
Re-worked the ItemStack transformer and applied it to ItemBlock and ItemBlockSpecial. Allowing us to cleanup reflective hacks in Block callbacks.
Registry onAdd callback is now only fired on the ACTIVE registry, fixing any issues of temp registries overriding active objects.
2017-06-23 16:59:57 -05:00
diesieben07
0e9820c51c
Clean up Logging ( #3953 )
...
# Conflicts:
# patches/minecraft/net/minecraft/client/renderer/texture/Stitcher.java.patch
# patches/minecraft/net/minecraft/client/renderer/texture/TextureMap.java.patch
# patches/minecraft/net/minecraft/entity/EntityList.java.patch
# patches/minecraft/net/minecraft/tileentity/TileEntity.java.patch
# src/main/java/net/minecraftforge/oredict/OreDictionary.java
2017-06-22 23:18:49 -07:00
mezz
c6d7c7c11f
Fix itemstack comparison with null
2017-06-19 23:27:52 -07:00
LexManos
f1cca475ea
Initial patch update to 1.12.
...
Some things to note:
Netty is screwy so currently can't join single player. @cpw
Crafting has been MAJORY reworked. The current GameRegistry functions are nooped, this is IN THE WORKS.
Just need to move the recipe list to a full class registry, and then re implement the in-code recipe registration.
Also, it IS advised that modders move to JSON, because ideally we'll see a S->C recipe syncing system in 1.13
which would allow servers to have custom recipes.
OreDictionary currently 1/2 works, need to write a better algorithm for replacing ingredients.
Please be patient
Rendering:
A lot of functions got a new float parameter, this is similar to partial ticks, needs more research
2017-06-10 22:22:02 -04:00
Ben Staddon
c6f181dcb2
Fixes for PlayerDestroyItemEvent being called with empty itemstacks. ( #3728 )
2017-05-26 13:54:13 -07:00
ichttt
6ffd94a08e
Create ItemFishedEvent, the event is cancelable, but items are not mutable. Use LootTables to control that. ( #3705 )
2017-05-01 18:10:47 -07:00
Madsthunder
93a4e13837
[1.11.2] Fixed Zombie Villagers not setting and getting professions correctly ( #3678 )
2017-04-30 21:59:57 -07:00
PhiPro95
5f4cd69167
Fix invulnerable items becoming invisible client side MC-53850 ( #3807 )
2017-04-07 17:03:43 -07:00
Ben Staddon
901df8345c
Add AnimalTameEvent for handling animal taming ( #3763 )
2017-04-07 16:47:28 -07:00
Vincent Lee
72dd06ca85
Allow result of PlayerInteractEvent to be changed when it's cancelled ( #3744 )
2017-04-07 16:38:56 -07:00
Da-Technomancer
fd0dabd60c
Added a boolean flag for disabling Entity onUpdate ( #3731 )
...
The flag is false by default, and if true the Entity will not update. It is saved and loaded from NBT, and is called updateBlocked. Modders are responsible for managing this flag for entities they with to 'freeze' or 'unfreeze'.
2017-04-07 16:28:53 -07:00
TheMasterGabriel
b99aa9bca4
Fix EntityFallingBlock check for ITileEntityProvider ( #3711 )
2017-04-07 16:18:45 -07:00
Silly511
f0eb941abc
New LivingDestroyBlockEvent for controlling if some entities can destroy blocks ( #3628 )
2017-04-07 15:34:26 -07:00
LexManos
f2425b7486
Fix breaking particles on dedicated server. Closes #3825
2017-04-06 13:16:01 -07:00
LexManos
d850ca890f
[MC-2518] Fixed missing break sound and particles. Closes #3821
2017-04-05 14:28:28 -07:00
LexManos
72937c90be
Fix vanilla bug where player reputations villages were reset on read.
...
Deprecated Username based API in favor of UUID based API.
2017-03-31 02:33:39 -07:00
David Quintana
a6284e6053
Allow mods to set other default "home dimensions" for respawning. ( #3528 )
2017-02-23 18:08:58 -08:00
Ben Staddon
d3c6130f88
Use Forge setting to determine baby zombie chance. Fixes #3690 .
2017-02-23 15:18:59 -08:00
LexManos
403eda184a
Properly fix IShearable implementation. Fixes shears taking damage twice, mooshroom particles, and blocks dropping incorrect loot.
2017-02-23 15:15:48 -08:00
LexManos
50bf03b82b
Cache entity constructors for a small performance optimization
2017-01-17 13:07:22 -08:00
liach
d672584b8d
Removed an unsafe usage of EntityMinecart.getType()
( #3592 )
2017-01-11 16:13:14 -08:00
James Mitchell
c545b8ecd4
Clean up null issues, add more annotations ( #3590 )
2017-01-11 15:17:56 -08:00
Vincent Lee
d2872ec7a2
Fix horse cap patch being reapplied in the wrong place ( #3609 )
2017-01-05 22:28:08 -08:00
LexManos
966c6263c3
Inital 1.11 update.
2016-12-26 21:34:18 -08:00
Hasun
a997222aca
reset repo to upstream and reapplied patches ( #3434 )
2016-12-17 13:10:17 -08:00
TechnicianLP
dac8e49f50
Added EquipmentChangeEvent ( #3411 )
2016-11-30 15:15:14 -08:00
LexManos
8d20258f3c
First pass at exposing data fixers to modders.
...
Each mod gets its own version number, mods SHOULD NOT rely on other
mod's fixers, just care about yourself.
Walkers can use IDataFixerData to retrieve their version.
2016-11-28 16:05:41 -08:00
kashike
12733656eb
Add method to check if an Entity can trample a Block. Fixes #2510 ( #2730 )
2016-11-27 02:40:23 -08:00
Shadowfacts
b4881195b3
Move EntityHorse capability patches to AbstractHorse ( #3417 )
...
Fixes #3409
2016-11-18 15:29:18 -08:00
LexManos
97ea0c4713
First draft of Entity Registry re-write.
2016-11-17 19:06:42 -08:00
LexManos
5ac6d374ed
Make Wither Skulls respect Block.canEntityDestroy. Closes #3404
...
(cherry picked from commit 6b52023a5c341420d976cb50359e2a2a4a6a9192)
2016-11-17 12:49:18 -08:00
LexManos
85a2a2e661
Fix issues with ZombieVillagers Closes #3398
...
1.11 doesn't intertwine zombie types anymore so our edits to split them out for custom professions are not needed.
2016-11-17 12:14:23 -08:00
mezz
150566d9a3
[1.11] Fix nullability issues around ForgeHooks and Capabilities ( #3395 )
2016-11-17 10:44:31 -08:00
LexManos
6741967608
Make EntityShulker fire EnderTeleportEvent. Closes #3383
...
(cherry picked from commit d48985fafaed6de6f09136b999ca8aa44184a7b9)
2016-11-16 16:05:41 -08:00
LexManos
c459b87ec9
Initial 1.11 release update.
2016-11-15 19:26:10 -08:00
cpw
4e6a774075
Initial 1.11-pre1 update
2016-11-13 17:09:55 -05:00
cpw
c177219ff3
regenerate entitylivingbase patch
2016-11-12 10:16:10 -05:00
boni
5f9034d95b
Call Looting Event on player death and loot table drops ( #3275 )
...
* Call Looting Event on player death and loot table drops
* Simplify patches
* More code cleanup: Replace old usage with compact forgehooks implementation
2016-10-30 10:53:50 -05:00
LexManos
cfa63792bc
Fix infinite loop in dragon fight when the dragon is over the void.
2016-10-11 12:35:18 -07:00
Steven Blom
8dca9f2694
New event to allow mutating a baby entity based on it's parents ( #3227 )
2016-09-13 09:32:27 -07:00
LexManos
f9c7caaf0c
Move dismount version of EntityMountEvent to Entity class. Should fix canceling dismounting. Closes #3226
2016-08-29 15:49:59 -07:00
cpw
2aa7260bbb
Refresh patch after cherry pick (cherry picked from commit 71f75bf)
2016-07-28 21:12:17 -04:00
Vincent Lee
2eb3b72618
Fix MC-91728
...
(cherry picked from commit 71f75bf)
2016-07-28 21:10:02 -04:00
Vincent Lee
f8ec3602f2
No-nonsense getSoundType
2016-07-24 11:44:21 -05:00
cpw
5a3047fbc2
Merge remote-tracking branch 'origin/pr/3072' into 1.10.x
2016-07-24 11:09:54 -04:00
cpw
7e36205ba7
Merge #3060 into 1.10.x
2016-07-09 11:58:09 -04:00
Vincent Lee
591ecdd7c9
Move to a hook in EntityMinecart
2016-07-09 08:53:07 -05:00
Vincent Lee
f76af6103e
Add throwable impact event ( #3071 )
2016-07-08 21:12:45 -07:00
Bernhard Bonigl
432e3ab08a
Add an event that allows to modify the looting level based on damage source
2016-07-03 15:19:31 +02:00
luacs1998
8e3bc83c3b
Simple implementation of a Open/Close container event ( #3017 )
2016-06-25 12:34:42 -04:00
cpw
db9e75a273
Fix item pickup dupe bugs. Closes #3015
2016-06-23 17:49:50 -04:00
mezz
254cf8bb23
Fix all guis closing as soon as they are opened ( #3013 )
2016-06-23 07:25:24 -04:00
cpw
260be68723
Update to 1.10
2016-06-23 02:39:55 -04:00
cpw
d1f4d71d93
Revert "Added PlayerOpenContainerEvent and added ForgeHooks.canInteractWith"
...
This reverts commit 8d0b58ee6f
.
# Conflicts:
# common/net/minecraftforge/common/ForgeHooks.java
# patches/minecraft/net/minecraft/entity/player/EntityPlayer.java.patch
# patches/minecraft/net/minecraft/entity/player/EntityPlayerMP.java.patch
2016-06-22 23:43:41 -04:00
Girafi
dd384a91af
Made forge-type spawn eggs spawn childs, when right clicking EntityAgeable again. ( #2982 )
2016-06-22 23:19:36 -04:00
cpw
ee2772b26a
Merge remote-tracking branch 'origin/pr/2994'
...
# Conflicts:
# patches/minecraft/net/minecraft/item/ItemStack.java.patch
2016-06-22 22:56:26 -04:00
LexManos
5c15dd714e
Fixed villager career display names being off by one.
2016-06-18 11:54:46 -07:00
Shadowfacts
7bbd1a6606
Fix broken EntityItem merging for Items with capabilities
2016-06-17 10:40:58 -04:00
diesieben07
aacb319594
Fix DataParameter mixup when vanilla clients are connected causing CCE in zombie renderer ( #2992 )
2016-06-16 12:23:30 -07:00
LexManos
9a23cf76d2
Expanded custom villagers to Zombies and world gen.
...
Fixed edge cases where custom professiosn wernt being used correctly. Closes #2862
2016-06-03 16:49:30 -07:00
LexManos
a5ffda5d66
Close player's inventory to prevent potential dupe issues on some modded items. Closes #1431
2016-05-28 18:20:05 -07:00
LexManos
1fbadb0ead
Fix villagers having farmer skin on vanilla servers. Closes #2894
2016-05-23 17:15:13 -07:00
LexManos
6b8466778e
Fire playerDestroyItem event's in some cases where we were not.
2016-05-23 16:35:49 -07:00
LexManos
cdc86e9af6
Update mappoings snapshot to 20160518
2016-05-18 05:23:30 -07:00
LexManos
b9ac73b0f1
1.9.4 Update.
...
Major things to note:
Class renames: https://gist.github.com/LexManos/44dd211f90f498ad4015279b103dff86
Tile Entities are now packed in the ChunkData packet.
Forge intends to work around this to better support large moded worlds, but for the time being modders should implement the new function carefully and only send what data they need to!
Minecraft's codebase now has annotations, these are directly from Mojang and should be adheared to!
Added support for package-info.java's containing @Nullable information for all MC code base.
2016-05-18 03:29:10 -07:00